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