form with static values thymeleaf code example
Example 1: thymeleaf input radio checked
<input type="checkbox" name="active" th:checked="${user.active}" />
Example 2: how to use thymeleaf in html view spring
// Add xmlns:th="http://www.thymeleaf.org" into the html opening tag like
<html lang="en" xmlns:th="http://www.thymeleaf.org">