I would like to use my Java class constants with hasRole in my Thymeleaf template.
Today I use :
<div sec:authorize="${hasRole('USR')}">
...
</div>
But I would like to use my constants (declared inside my java class)
public class Consts{
public static final String USR_CONST = "USER";
}
How can I change the string value ('USR' , hasRole parameter ) to constant USR_CONST ?