码迷,mamicode.com
首页 > 编程语言 > 详细

spring security maven dependency

时间:2016-09-30 02:08:07      阅读:119      评论:0      收藏:0      [点我收藏+]

标签:

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!