<#assign test = data['test']>
test가 boolean 타입일 경우 if문으로 체크할때
<#if test == true>
</#if>
이런식으로 체크하면 오류가 발생한다.
freemarker에서는 boolean타입 check시에
<#if test?string("yes","no") == "yes">
</#if>
이런식으로 체크 해야한다.
'Computer > Web' 카테고리의 다른 글
[Intellij] Intellij 단축키 (0) | 2017.05.22 |
---|---|
Eclipse Dynamic Web Project를 Intellij로 옮길때 수정했던 내용 (0) | 2017.04.28 |