Próbuję przepisać przykład konfiguracji spring security z książki, ale już 2 lini eclipse zgłasza błąd:
ultiple annotations found at this line:
- Security namespace does not support decoration of element [interecpt-url]
- Configuration problem: Security namespace does not support decoration of element [interecpt-url] Offending resource: file [D:/Documents/workspace/
SHello/src/main/webapp/WEB-INF/spring/webcontext/security-context.xml]- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'security:interecpt-url'.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springrframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:security="http://www.springframework.org/schema/security"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.2.xsd">
<security:http auto-config="true"></security:http>
<security:interecpt-url pattern="/products/add" access="ROLE ADMIN"/>
</beans>