I have a Quarkus 2.16 project with JDK 17. I am trying to specify an array with 2 roles using Quarkus Expression Language, as shown in the snippet below:
@Path("/hello")
@RolesAllowed("${my-roles}")
public class GreetingResource {
// ...
}
In the application.properties file, I have specified the property below with the two allowed roles:
my-roles=ROLE1,ROLE2
However, the application is not recognizing these roles. Is there a way to specify an array of roles to be used with Expression Language in the @RolesAllowed annotation?
Are there alternatives?