Вопрос

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