Closed
Description
Hello,
I am using spring-security 5.0.6 and I want to make max-sessions field configurable from a properties file
So I did this :
<security:session-management>
<security:concurrency-control max-sessions="${security.maxSessions}" session-registry-ref="sessionRegistry""/>
</security:session-management>
But i get this error :
Multiple annotations found at this line:
- cvc-datatype-valid.1.2.1: '${security.maxSessions}' is not a valid value for 'integer'.
- cvc-attribute.3: The value '${security.maxSessions}' of attribute 'max-sessions' on element 'security:concurrency-control' is not valid with respect to its type, 'integer'.
Is there any solution to make it configurable ?
Thanks,