首页 > 代码库 > spring security maven dependency

spring security maven dependency

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