1。spring日期類型要寫自己的方法覆蓋原有的綁定類型
例如生日域的綁定
protected void initBinder(HttpServletRequest arg0, ServletRequestDataBinder arg1) throws Exception {
arg1.registerCustomEditor(Date.class,"birthday",getCustomDateEditor());
super.initBinder(arg0, arg1);
}
2.trim
The string without leading and trailing white-space. Example: (${" green mouse "?trim})
The output: (green mouse)
3.split
<#list "someMOOtestMOOtext"?split("MOO") as x>
- ${x}
</#list>
willprint :
- some
- test
- text
只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。 | ||
![]() |
||
網(wǎng)站導(dǎo)航:
博客園
IT新聞
Chat2DB
C++博客
博問(wèn)
管理
|
||
| |||||||||
日 | 一 | 二 | 三 | 四 | 五 | 六 | |||
---|---|---|---|---|---|---|---|---|---|
30 | 31 | 1 | 2 | 3 | 4 | 5 | |||
6 | 7 | 8 | 9 | 10 | 11 | 12 | |||
13 | 14 | 15 | 16 | 17 | 18 | 19 | |||
20 | 21 | 22 | 23 | 24 | 25 | 26 | |||
27 | 28 | 29 | 30 | 1 | 2 | 3 | |||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
常用鏈接
留言簿(1)
隨筆檔案
搜索
最新評(píng)論

- 1.?re: 夢(mèng)想
- 不朽
- --123
- 2.?re: java 的 Des加密和解密
- 怎么8個(gè)字節(jié)加密后得到24個(gè)字節(jié)?應(yīng)該是得到8個(gè)字節(jié)才對(duì)啊?
- --車板
- 3.?re: 這個(gè)頁(yè)面不錯(cuò)
- 這是BlogJava的定位。
- --dudu
- 4.?re: 這里很快
- 在電信機(jī)房。
- --dudu
- 5.?re: 這里很快
- 你們服務(wù)器在哪里的啊?
- --阿飛