Spring Security 3 Gotcha Namespace Configuration

Hi I can’t understand why I am getting the following error:

org.springframework.beans.factory.parsing.BeanDefinitionParsingException: configuration problem. You cannot use the spring -security-2.0.xsd schema with Spring Security 3.0. Upgrade your schema declarations to schema 3.0.

when I try to run an application having the following security namespace configuration:

Security Configuration:

<beans:beans xmlns="http://www.springframework.org/schema/security"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:beans="http://www.springframework.org/schema/beans"
 xmlns:jdbc="http://www.springframework.org/schema/jdbc"
 xsi:schemaLocation="
  http://www.springframework.org/schema/beans 
  http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  http://www.springframework.org/schema/jdbc  http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd
  http://www.springframework.org/schema/security 
  http://www.springframework.org/schema/security/spring-security-3.0.3.xsd
 ">
...
</beans:beans>

Can someone help me figure this out please?

thank

+3
source share

Source: https://habr.com/ru/post/1786269/


All Articles