I have an enum, Constants:
Constants
enum Constants { ONE,TWO,THREE; }
How can I compare the enum Constants in Thymeleaf.
Thank
To compare with an enum constant, use the following code:
th:if="${day == T(my.package.MyEnum).MONDAY}"