I have an enum, Constants:
Constants
enum Constants { ONE,TWO,THREE; }
How can I compare the enum Constants in Thymeleaf.
Thank
@Nick answer has a small syntax error, it's missing a final brace. It should be
th:if="${day == T(my.package.MyEnum).MONDAY}"