load value in empty front form without starting with 0 [java] Thymeleaf + spring

0

My entity is integer and loads the front with value 0, I think it is a simple thing but I do not understand much.

    
asked by anonymous 15.03.2017 / 13:01

1 answer

1

To solve, just start the entity with the null value, so nothing will be displayed. Simple as that.

// Inicializa integer com valor igual a null.
Integer entity = null;
    
15.03.2017 / 13:06