У меня проблема с настройкой:
<sec:global-method-security secured-annotations="enabled" />
следующая ошибка:
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [applicationContext.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.getLocalName(Lorg/w3c/dom/Node;)Ljava/lang/String
Есть несколько несовместимых файлов jar с безопасностью схемы
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:sec="http://www.springframework.org/schema/security" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:beans="http://www.springframework.org/schema/beans" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
Я использую следующую банку безопасности:
весна-безопасности ядро-тигр-2.0.4
пружинно-2,5
Похоже, у вас может не быть требуемой зависимости безопасности пружины (spring-security-tiger-xxx.jar).
spring-security-tiger-xxx.jar
В соответствии с spring-security-2.0.2 xsd , secured-annotations доступно.
secured-annotations