标签:
Unable to locate Spring NamespaceHandler for XML schema namespace [
spring secutity dependency:
<!-- Spring Security --> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-core</artifactId> <version>${springsecurity.version}</version> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-web</artifactId> <version>${springsecurity.version}</version> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-config</artifactId> <version>${springsecurity.version}</version> </dependency>
或者:
<!-- spring security --> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-web</artifactId> <version>${springsecurity.version}</version> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-config</artifactId> <version>${springsecurity.version}</version> </dependency>
包含spring-security-web会自动下载spring-security-core。
不可缺少spring-security-config,因为其包含xsd文件,缺少该artifactId会报Unable to locate Spring NamespaceHandler for XML schema namespace的错。
spring security maven dependency
标签:
原文地址:http://www.cnblogs.com/drizzlewithwind/p/5922251.html