thymeleaf radio button checked by default example Example: thymeleaf input radio checked <input type="checkbox" name="active" th:checked="${user.active}" />