运营商系统登录与安全控制
2.1 需求分析
完成运营商登陆功能
2.1 登陆功能的实现
2.1.1 配置文件
(1)修改 pinyougou-manager-web 的 pom.xml ,添加依赖
```
org.springframework.securityspring-security-weborg.springframework.securityspring-security-config```(2)修改 web.xml```
contextConfigLocationclasspath:spring/spring-security.xml``````
org.springframework.web.context.ContextLoaderListenerspringSecurityFilterChainorg.springframework.web.filter.DelegatingFilterProxyspringSecurityFilterChain/*```(3)pinyougou-manager-web 的 spring 目录下添加配置文件 spring-security.xml
``````
配置说明:always-use-default-target:指定了是否在身份验证通过后总是跳转到 default-target-url 属性指定的 URL。如果你在系统中使用了框架页,需要设置框架页的策略为 SAMEORIGIN
2.1.1 登录页面修 改 pinyougou-manager-web 的 login.html
>> 拖动滑块验证登 录
点击查看更多内容
为 TA 点赞
评论
共同学习,写下你的评论
评论加载中...
作者其他优质文章
正在加载中
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦