I have an enum, Constants:
Constants
enum Constants { ONE,TWO,THREE; }
How can I compare the enum Constants in Thymeleaf.
Thank
If you don't want to convert your Enum into a string in your object you can do it like this:
th:if="${#strings.defaultString(someObject.myConstant, 'DEFAULT_VALUE') == 'ONE'}"