Thymeleaf dialect for input attributes
<dependency>
<groupId>thiagodnf.thymeleaf.extras.input.attributes</groupId>
<artifactId>thymeleaf-extras-input-attributes</artifactId>
<version>1.0.0</version>
</dependency>@Configuration
public class ThymeleafConfiguration {
@Bean
public InputAttributesDialect getInputAttributesDialect() {
return new InputAttributesDialect(true);
}
}public class SignupDTO {
@NotBlank
@HTMLAutoFocus
@HTMLSpellCheck("false")
@HTMLAutoComplete("given-name")
private String firstname;
}<input type="text" id="firstname" name="firstname" required="" autofocus="" spellcheck="false" autocomplete="given-name">