문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
|
java:template_engine:freemarker [2015/11/23 00:07] kwon37xi [null 검사] |
java:template_engine:freemarker [2015/11/26 21:14] (현재) kwon37xi [Template Cache] |
||
|---|---|---|---|
| 줄 31: | 줄 31: | ||
| ===== null 기본값 ===== | ===== null 기본값 ===== | ||
| - | * '' | + | * '' |
| - | * 단, **'' | + | * 단, **'' |
| + | * null 일 경우 기본값으로 대체. 기본값표현식을 생량하고 '' | ||
| < | < | ||
| 줄 90: | 줄 91: | ||
| cfg.setNumberFormat(" | cfg.setNumberFormat(" | ||
| </ | </ | ||
| + | ==== Template Cache ==== | ||
| + | 캐시를 지정해 속도를 높여야 한다. | ||
| + | [[http:// | ||
| + | <code java> | ||
| + | cfg.setTemplateUpdateDelayMilliseconds(3600000L); | ||
| + | cfg.setCacheStorage(new MruCacheStorage(500, | ||
| + | </ | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * 기본값은 '' | ||
| + | * '' | ||