Hi,

I would like to configure the pre-post-annotations via a property like this

Code:
<security:global-method-security pre-post-annotations="${security.annotations}"/>
using security.annotations=enabled

However, I'm getting the following error:

Code:
Offending resource: class path resource resteasy-test-server.xml; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 24 in XML document from class path resource resteasy-service-servlet.xml is invalid; nested exception is org.xml.sax.SAXParseException: cvc-enumeration-valid: Value '${security.annotations}' is not facet-valid with respect to enumeration '[disabled, enabled]'. It must be a value from the enumeration.
The motivation is to disable the security for testing. For my tests I'm including my regular appContext.xml files and having the above configuration once with enabled and once with disabled doesn't work.

Frank