文章分类 -  pyg-day04

spring security
spring security 显示登录的用户名与退出登录
摘要:一、显示登录成功的用户名 1.编写LoginController.java 注意这里不是从数据库取的数据 ,用的是配置文件里配置的账号,而且要登录成功才能取到。 2.编写loginService.js 注意,上面的app和$http来自base.js base.js 需要在页面引入 <script 阅读全文

posted @ 2019-06-21 19:59 成魔的蜘蛛 阅读(353) 评论(0) 推荐(0)

spring security 完成登录
摘要:1. 在manage-web工程引入依赖 里面的jar包 2.login.html 3.spring-security.xml 4.web.xml 5.执行结果 地址栏输入http://localhost:9101/ 自动跳转到http://localhost:9101/login.html 输入用 阅读全文

posted @ 2019-06-21 14:59 成魔的蜘蛛 阅读(324) 评论(0) 推荐(0)

Srping security 入门
摘要:一、入门demo 1.新建maven web工程 2.引入pom.xml依赖 3.引入web.xml 4.引入spring-security.xml 5.编写index.html 6.测试结果 地址输入:localhost:9090 其中/login是它自动跳转的 输入spring-security 阅读全文

posted @ 2019-06-21 00:23 成魔的蜘蛛 阅读(117) 评论(0) 推荐(0)

导航