基于Maven的spring_security入门
配置文件的修改点没什么变化,可以参考:http://blog.csdn.net/ouitiken/article/details/8830505
pom.xml的依赖参考:
<dependencies> <!-- Commons -->
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
<version>1.4</version>
</dependency> <!-- Log -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency> <!-- Struts2 -->
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
<version>2.3.18</version>
</dependency>
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-core</artifactId>
<version>2.3.16.3</version>
</dependency>
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-spring-plugin</artifactId>
<version>2.3.16.3</version>
</dependency> <!-- Spring -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>3.2.8.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>3.2.8.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>3.2.8.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>3.2.8.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>3.2.8.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-expression</artifactId>
<version>3.2.8.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>3.2.8.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
<version>3.2.4.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-web</artifactId>
<version>3.2.4.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
<version>3.2.4.RELEASE</version>
</dependency> <!-- Mybatis -->
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.0.6</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>1.0.2</version>
</dependency> <!-- Database -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.31</version>
</dependency>
</dependencies>
接下去就是spring-security的实现了
1. 修改web.xml
加入spring-security的过滤器,切忌必须加在struts2的过滤器前面。
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id="WebApp_ID" version="2.5">
<display-name>SpringSecurityPrj</display-name>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:applicationContext*.xml
</param-value>
</context-param>
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
接下来编写的是applicationContext-security.xml文件:
<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/security"
xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-3.2.xsd">
<!-- 自动配置模式,拦截所有请求,有ROLE_USER才可以通过 -->
<http auto-config="true">
<intercept-url pattern="/**" access="ROLE_USER" />
</http>
<!-- 认证管理器。用户名密码都集成在配置文件中 -->
<authentication-manager>
<authentication-provider>
<user-service>
<user name="sharp" password="sharp" authorities="ROLE_USER" />
</user-service>
</authentication-provider>
</authentication-manager>
</beans:beans>
另外我新建了一个index.jsp文件,作用是登录成功后返回到index.jsp页面:
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录首页</title>
</head>
<body>
<span color="red">登录成功!</span>
</body>
</html>
当我们在浏览器地址栏里输入下面的url:
http://localhost:8080/SpringSecurityPrj/
我们就可以再浏览器里看到用户登录界面:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAa8AAACXCAIAAAAtV0MiAAAQX0lEQVR4nO3dTWgcaX7H8efWBx1EH5ochDFGDD6IUAbrIMaEQTr4MiDGEDArq8nBZPEs0UUwGdBhbE8QoQg4bKyASFgR0HgmYhVoRusdYkZgMGPPzowNZhq0mDHG1ibpOEknhz7U7Z/DUy/PUy+tVvUjtbr1/aCDVdVVXVXP8/zqqafKKiUAABE16A0AgBOBNAQAEdIQADTSEABESEMA0EhDABAhDQFAIw0BQIQ0BABt4GkYPF9/f6KiKuPv3XkeHNu3th4s//GYUmPnbjRa3T7X9D2llFLK85vHtW1wg7LrisOTVZyGjbo+WKreOMoNiAtFjd3416P8Iku8c+rduy972brDVJnihZKdPdqDCuml7JLiiFXGJ6bmlje+2z++M/OAkIZZA09Daf5qAH3D9u7H6b5h0P5x9+8/mZ+ZeO9OUjtIw+FVKg0jtcu/GvGMIA2zBp+GJ0Vu7SANh1dfaahU5coX7ePd4ONFGmaRhhHScMQcJg3D4ui8fbZxpRbl4dXtUb5cJg2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CGFtrVMKLU4ARpaKFdDSNKDU6QhpaBv/uNn3I/g644GAWkIQCIkIYAoJGGACBCGgKARhoCgEgvabh9gh3DAQJwSvSUhv93IpGGABzqKQ3/90QiDQE4RBoCgEiPadg+kUhDAA6RhgAg0mMa/s+JRBoCcKinNPzvE4k0BOCQkzT850V14a++K5dp5ZclDQE4NPA0LI80BOBQT2n4Xwf44pq68Onv7Gm/+/RC+Ko6Y1YyMZ4eL/vFNXXh00+vZZYpRBoCcKinNHx7gM+vqQu3v01NUdc+T/3z29sX4s/Fi5j/MD8YLt0FaQjAoaNJQyMMk1/SE7NpGK8kG6+kIYCj1VMa/ucB7i2oC7efFE14cvuCWriXmhj/kv1H3grzkIYAHOopDVsHuLegvFuP7Qlq4V7ql/REvUj2H3krzEMaAnDoaNKwdW9BRZOSEDTiMJlPGgI4EVyloWnhXqvVenzLC381ci3+4MICfUMAJ0pPafgf7n22oLxb3/S1CtIQgEM9peG/O7L5s59tRv9S3s1v+lsbaQjAoWNOw/hqOorFPpCGABzqKQ3/7UQiDQE4RBoCgAjvzAMAjfcpA4AIaQgAGmkIACKkIQBopCEAiJCGAKCRhgAgQhoCgEYaAoAIaQgAGmkIACKkIQBopCEAiJCGAKCRhgAgQhoCgEYaAoAIaQgAGmkIACKkIQBopCEAiIj8P/8DIoxchQb/AAAAAElFTkSuQmCC" alt="" />
呵呵,内置的登录页面,挺好玩的。没有使用过springsecurity可能还没发现我在那里配置用户名和密码吧,看下面一段代码,这里就是用户名和密码:
<user name= "sharp" password= "sharp" authorities= "ROLE_USER" /> |
测试一:
我们录入用户名:admin;密码:admin,然后点击提交查询,最终页面如下:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgoAAAD9CAIAAABSq8iKAAAbTklEQVR4nO3dTYgcZ37H8efWhzkMcxhyEMYYYXQQoQSew2ARltHBlwVhQ0CsPEUOIou8ZC6CjWEOlu0gQhFw2FgBkbBDQGs7wloorNWaGAtEjC3viw3CDVqEjbC0SWadZLKH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mI+Q9zxnzpGsQDAPSqh3gw0qH6xZ3ox0O5Ej9viAcAOGjN8fCHBu+cV6feuBeacO+NU+r8O87E8hf/H9IKJcQDAPSqOR52G7xzXkWvf2ZPUOffcX5xJ2aL+P+QVighHgCgVz3Ew+4751UxqUoFIx+qz4kHAJhRU4kH0/l3dnd3P3s9yn81KvpyxvPnaT0AwIxrjof/mr6fnVfR659OtAriAQB61RwP/zkl13/wg+vFv1R0+dPJ1kY8AECvDjIeyg6oIicmQDwAQK+a4+E/ZhLxAAC9Ih4AAILmeJhZB3OAAOBoaogHAMDRRDwAAATEAwBAQDwAAATEAwBAQDwAAATEAwBAQDwAAATEAwBAQDwAAATEAwBAQDwAAATEAwBAQDwAAATEAwBAQDwAAATEAwBAQDwAAATEAwBAQDwAAATEAwBAQDwAAATEAwBAQDwAAATEAwBAQDwAAATEAwBAQDwAAATEAwBAQDwAAATEAwBAQDwAAATEAwBAQDwAAAT/D5GbkO4sgapnAAAAAElFTkSuQmCC" alt="" />
登录失败了哦!
测试二:我们录入用户名:sharp;密码:sharp;如下图:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgEAAACkCAIAAACBympCAAAR2ElEQVR4nO3dT2gcWWLH8Xfrgw6iD00OwhgjBh/EUgb3QYwJg3TwZUCMYcGsrCaHJotniS6CyYAOY3uCCEWQw8YKiIQVAY1nIkYDzWh7h5gRGMzYszNjg5kGLWKMsbVJtE7SyaEPdXs51L9Xr6paraqWqkvv+0EHqf71q3rV71f1XrVaSACAqUTRBQAAFIYMAABzkQEAYC4yAADMRQYAgLnIAAAwFxkAAOYiAwDAXGQAAJiLDAAAc5EBAGAuMgAAzEUGAIC5yAAAMBcZAADmIgMAwFxkAACYiwwAAHORAQBgLjIAAMxFBgCAuUYhA5zn6+9OVERl/J27z51Te9XDB0s/GxNi7MLN1mG/5Tq2JYQQQlh257TKhuGg7vri8EAekQGthnuKiEbrJMsQnIpi7Oa/neQLRQQ7J96+92KQ0h3njZK+UrizJ3t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WLe/ybUJMgAA8hg0A/5jSDZ/8YtN/zdh3fom39bIAADI4/QzIOgv8sMgBzIAAPIYNAP+fSSRAQCQBxkAAOYaNANG1kkfIAA4wwbKAADAmUQGAIC5yAAAMBcZAADmIgMAwFxkAACYiwwAAHORAQBgLjIAAMxFBgCAucgAADAXGQAA5iIDAMBcZAAAmIsMAABzkQEAYC4yAADMRQYAgLnIAAAwFxkAAOYiAwDAXGQAAJiLDAAAc/0/iTe35vD4o78AAAAASUVORK5CYII=" alt="" />
点击提交查询后,页面如下:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXcAAACGCAIAAACpG12hAAAD9ElEQVR4nO3cy42jQBiFUTKqiCogsiGGiYFAJoOaBQ/zMmakvmovzlEvbA24veHTXwU93V+ApO4PQFLXAJJUBshSGSBLZYAslQGyVAbIUhkgS2WALJUBslQGyFIZIEtlgKz/rczYStf6cX7Xl9frnzL2rSttbG2orfTPjq8//B2An3NTmaF13fFnaK0vrfRzbkrfxm1lxlZOp5w/4YNhrsw4tr7Mr2/cVGaoz34jEPR4lunLcjEv9ZmnmOFzCGZjK/9TmfmkYX7dl2Ow6tDalBKVge91P8ssV++6ipnM40ybi1M31/G5BTezzNh/OPgQlLadXG7mpjdfG/gN7yvzWrAMFxNB7Vopm4nmidMsc73YuR2OzqccZpntW5WBL/BpxbQuOuphuOh328DtwRSz/ZlGoevK3C6sLiuz3STevlUZ+AK3landh9s3Hw/oy249dXBeMdXhWJm6X5GdK/NavrXWVAa+zrvKLHesP2ydLOup1zbN/qp+7RlvPnaNxiEZdRmO1hdDPX7guTL1tDGkMvBNPq2Y7p5GOTVlXKq0Xuf9du/mdPP7XWXmCWi42Pc5fp/T8kpl4Mv8aGVWdbny+9Jq30qd63NYPe22VDbP+00jTOkunsqbv8/YStfqcHEb+7CAAn7bk8rcr5huTqzzVDJ9yPlu1G7XZnsna9jdkH6lZNj/3vG4A338TOD3PXkqb2zlVJOhvr2Yp9tSUxfWa/5i8bIsdtabU4d11vZt6Vs9Ra1eDTvbbRpP5cEXePbs73ET9/Qw3uuw/ZW/25oddv96/czu9Kzdsqk8nVvPc9B02JvT14NVBr7A478w2F7q9Sox9TSMXC6p1g2aer7+D/Fan+69GoK2X2D3LI+/nITv8r4y9WY75v1fAADs+f9lgCyVAbJUBshSGSBLZYAslQGyVAbIUhkgS2WALJUBslQGyFIZIEtlgCyVAbJUBshSGSBLZYAslQGyVAbIUhkgS2WALJUBslQGyFIZIEtlgCyVAbJUBshSGSBLZYAslQGyVAbIUhkgS2WALJUBslQGyFIZIEtlgCyVAbJUBshSGSBLZYAslQGyVAbIUhkgS2WALJUBslQGyFIZIEtlgCyVAbJUBshSGSBLZYAslQGyVAbIUhkgS2WALJUBslQGyFIZIEtlgCyVAbJUBshSGSBLZYAslQGyVAbIUhkgS2WALJUBslQGyFIZIEtlgCyVAbJUBshSGSBLZYAslQGyVAbIUhkgS2WALJUBslQGyFIZIEtlgCyVAbJUBshSGSBLZYAslQGyVAbIUhkgS2WALJUBslQGyFIZIEtlgCyVAbJUBshSGSBLZYAslQGyVAbIUhkgS2WArH+k2+8bqFDfcwAAAABJRU5ErkJggg==" alt="" />
页面跳转到index.jsp页面,登录成功了。
基于Maven的spring_security入门的更多相关文章
- java selenium (三) 环境搭建 基于Maven
现在Java的大部分项目都是基于Maven, 在Maven项目中使用Selenium2. 非常简单. 首先你需要配置好Maven的环境 可以参考本博客的Maven教程系列,Maven入门教程(一) ...
- 详解SpringMVC中Controller的方法中参数的工作原理——基于maven
转自:http://www.tuicool.com/articles/F7byQn 前言 SpringMVC是目前主流的Web MVC框架之一. 如果有同学对它不熟悉,那么请参考它的入门blog:ht ...
- 基于java的设计模式入门(1)——为什么要学习设计模式
大年初一,楼主在这里给大家拜年,祝大家码上升职加薪,码上有对象结婚,码上有车有房,幸福安康. 过完年,回学校注册报道之后,大概就要回深圳到公司开始实习了.提高自己,无非就有两种方式,一是看书学习,二是 ...
- 菜鸟学自动化测试(八)----selenium 2.0环境搭建(基于maven)
菜鸟学自动化测试(八)----selenium 2.0环境搭建(基于maven) 2012-02-04 13:11 by 虫师, 11419 阅读, 5 评论, 收藏, 编辑 之前我就讲过一种方试来搭 ...
- 基于Maven构建整合SpringMVC+Mybtis+Druid
前几天趁空闲时间整合了下SpringMVC+Mybatis+Druid,这里小记录下,这个Demo是基于Maven构建的,数据源用的是阿里巴巴温少的开源项目Druid,数据库用的是Mysql. 由于E ...
- 学习笔记——Maven实战(四)基于Maven的持续集成实践
Martin的<持续集成> 相信很多读者和我一样,最早接触到持续集成的概念是来自Martin的著名文章<持续集成>,该文最早发布于2000年9月,之后在2006年进行了一次修订 ...
- 基于Maven的Springboot+Mybatis+Druid+Swagger2+mybatis-generator框架环境搭建
基于Maven的Springboot+Mybatis+Druid+Swagger2+mybatis-generator框架环境搭建 前言 最近做回后台开发,重新抓起以前学过的SSM(Spring+Sp ...
- Spring 3整合Quartz 1实现定时任务一:常规整合(基于maven构建)
Spring配置Quartz例子(基于maven构建) 在Spring中使用Quartz有两种方式实现:第一种是任务类继承QuartzJobBean,第二种则是在配置文件里定义任务类和要执行的方法,类 ...
- Java系列--第二篇 基于Maven的Android开发HelloAndroidWorld
曾经写过一篇Android环境配置的随笔,个人感觉特繁琐,既然有Maven,何不尝试用用Maven呢,经网上搜索这篇文章但不限于这些,而做了一个基于Maven的Android版的Hello Andro ...
随机推荐
- 练习PopupWindow弹出框之实现界面加载的时候显示弹出框到指定的view下面--两种延迟方法
今天在练习PopupWindow弹出框的时候,打算在界面加载的时候将弹出框展现出来并显示在指定的view下面. 初步方法是直接在OnResume方法里面直接执行showPopupWindows方法. ...
- xml_03
1.xml 2.对于XML文档的约束 |-DTD <!DOCTYPE 根元素 [ <!ELEMENT 元素名 (xx)> <!ATTLIS ...
- jQuery的基础语法实例
jQuery 基础语法 jQuery 语法是为 HTML 元素的选取编制的,可以对元素执行某些操作. 基础语法是:$(selector).action() 美元符号定义 jQuery 选择符(sele ...
- autoplay media studio couldn't load
AutoPlay Media Studio 7 (English version) is installed on target machine. Following error occurred w ...
- 绑定本地Service并与之通信
绑定Service需要调用 public boolean bindService (Intent service, ServiceConnection conn, int flags): 传入一个Se ...
- (转)Libevent(3)— 基础库
转自:http://name5566.com/4202.html 参考文献列表:http://www.wangafu.net/~nickm/libevent-book/ 此文编写的时候,使用到的 Li ...
- 第16章 网络IPC:套接字总结
1 套接字是通信端点的抽象 创建套接字: int socket(int domain,int type,int protocol) domain:通信域 AF_INET.AF_INET6.AF_LOC ...
- Scala - 正则表达式匹配例子
壹Try胜仟言 别忘了 import scala.util.matching._ scala> var s = "a_b_c_d_e"s: String = a_b_c_d_ ...
- git 备份和恢复
实际应用 设置之前要在个人用户设置中增加key(为了备份ssh的项目) 备份 进入ditlab容器 cd /home/git/gitlab bundle exec rake gitlab:backup ...
- tomcat server.xml配置文件 解析
把服务拆分出来了. 前几天我也进行了拆分.可是当时服务起不来所以我想会不会有什么设置,使得这个服务在主机中只能启一个.然后我又找了一台服务器,也把代码放了进去.结果仿佛是我料想到的样子, ...