I'm creating a simple HTML form along with Thymelaf that I use in my Spring Boot application.
In the form I specified a following statement:
<input type="number" step="0.1" min="0" max="10" **th:field="*{rating}"**
class="form-control mb-4 col-4" placeholder="Rating">
However, instead of Rating, the value showed in the form is 0.
Once you delete the 0, placeholder finally appears.
Edit
Apparently, Thymeleaf seems to cause the problem here.
<input type="number" step="0.1" min="0" max="10" th:field="*{rating}"
class="form-control mb-4 col-4" placeholder="Rating">
<input type="number" placeholder="Test Rating"
class="form-control mb-4 col-4">


