This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# messages | |
content.msg = display from properties file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.marineroad.springboot; | |
public class DataObject { | |
private int id; | |
private String name; | |
private String value; | |
public DataObject(int id, String name, String value) { | |
super(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html xmlns:th="http://www.thymeleaf.org"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" /> | |
<title>Thymeleaf 基本編</title> | |
<style> | |
h1 {font-size: 2rem; border-bottom: solid 3px #4caf93;} | |
h2 {font-size: 1.6rem; border-bottom: solid 1px #4caf93;} | |
p {padding-left: 30px;} | |
table {padding-left: 30px; border-spacing: 0;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
ext { | |
springBootVersion = '1.5.4.RELEASE' | |
} | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.marineroad.springboot; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.servlet.ModelAndView; | |
@Controller // (1) | |
public class ThymeleafController { | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
array( | |
'conditions' => array('Model.field' => $thisValue), //検索条件の配列 | |
'recursive' => 1, //int | |
'fields' => array('Model.field1', 'DISTINCT Model.field2'), //フィールド名の配列 | |
'order' => array('Model.created', 'Model.field3 DESC'), //並び順を文字列または配列で指定 | |
'group' => array('Model.field'), //GROUP BYのフィールド | |
'limit' => n, //int | |
'page' => n, //int | |
'offset' => n, //int | |
'callbacks' => true //falseの他に'before'、'after'を指定できます |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |