摘要: 1.在登录页面添加 <script> $(function () { if (top != window) { layer.msg("登录失效", {icon: 5}); top.location.href = window.location.href; } })</script>2.在layui弹 阅读全文
posted @ 2020-06-09 15:16 伏沙金 阅读(1451) 评论(0) 推荐(0) 编辑
摘要: 一.思路 1.先导入相关配置(使用spring security校验之后,登录拦截的配置) 2.创建一个 WebSecurityConfig 继承 WebSecurityConfigurerAdapter ,重写 configure(HttpSecurity http) 配置表单登录和登出路径和跳转 阅读全文
posted @ 2020-06-09 15:04 伏沙金 阅读(334) 评论(0) 推荐(0) 编辑