문제

I have found pretty interesting thing Using java+spring+freemarker

From java controller I pass '-1' as Integer value. From time to time in freemarker template after ${value} I am getting '1-' instead of '-1' This happens randomly from time to time.

Any ideas why this happens? Freemarker bug?

도움이 되었습니까?

해결책

Try ${value?c} that will format the number as a computer readable number.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top