2014年12月25日木曜日

IntelliJ IDEAのよく使うショートカットキー

行のコピー: cmd+D
行の削除: cmd+Y (eclipseはctrl+d)
宣言 Declaration: cmd+B or alt+cmd+B
Text to find: shift + cmd + f
Extract Method: alt+cmd+M
Inline: alt+cmd+N
Extract Variable:alt + cmd + v
find usage: alt + F7
ファイル名で開く: shift + cmd + N
rename : shift + Fn+f6
recent files: cmd+E


2014年12月23日火曜日

Thymeleafで1から5までループ

Thymeleafで1から5までループする例
<select name="hoge">
  <option th:each="i : ${#numbers.sequence(1, 5)}" th:value="${i}" th:text="${i}"></option>
</select>

2014年12月9日火曜日

thymeleaf の比較演算子

関係演算子

大小比較
m<n」の場合:m &lt; n
m>n」の場合:m &gt; n
m<=n」の場合:m &le; n
m>=n」の場合:m &ge; n