Handling Enums in Thymeleaf templates
Select tag in HTML is usually a form input with a set of pre-defined options. Even though it is common to hard code these values, thymeleaf can offer you much more leverage with Enum support. Let’s see how we can do that. Enum Setup An Enum in java is a data type that allows us to define a set of … View This post