上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 29 下一页
摘要: 05. Spring Security 图形验证码 参考: https://blog.csdn.net/yuanlaijike/article/details/80253922 https://mrbird.cc/Spring Security ValidateCode.html [TOC] 依赖 阅读全文
posted @ 2020-05-15 16:46 CyberPelican 阅读(269) 评论(0) 推荐(0) 编辑
摘要: Spring Security 登出 [TOC] 默认退出处理逻辑 使当前session失效 清除配置的 认证, 会清空数据库中的 清空 重定向到 关键类 观察发发现, 针对多种请求方式 注意的一点是 的注解 The URL that triggers log out to occur (defau 阅读全文
posted @ 2020-05-15 09:16 CyberPelican 阅读(1149) 评论(0) 推荐(0) 编辑
摘要: 03. Spring Security 异常处理 参考: https://blog.csdn.net/yuanlaijike/article/details/80250389 不知道你有没有注意到,当我们登陆失败时候,Spring security 帮我们跳转到了 Url,奇怪的是不管是控制台还是网 阅读全文
posted @ 2020-05-15 01:11 CyberPelican 阅读(2637) 评论(0) 推荐(0) 编辑
摘要: 02. Spring Security rememberMe 参考: https://blog.csdn.net/yuanlaijike/article/details/80249869 接着上一讲 修改 使用简单的记住我, 但是不安全 login.html 添加rememberMe() 配置类 = 阅读全文
posted @ 2020-05-15 01:06 CyberPelican 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Redirect和Forward的区别 参考: https://blog.csdn.net/u010452388/article/details/80398929 redirect/重定向 forward/请求转发 数据共享 不能共享数据 可以共享request里面的数据 地址栏 地址栏改变 地址栏 阅读全文
posted @ 2020-05-15 00:36 CyberPelican 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 01. Spring Security 参考: https://blog.csdn.net/qq_36095679/article/details/92625701 https://blog.csdn.net/yuanlaijike/article/details/80249235 核心组件 Sec 阅读全文
posted @ 2020-05-14 19:32 CyberPelican 阅读(240) 评论(0) 推荐(0) 编辑
摘要: nextInt()和nextLine() Scanner scanner = new Scanner(System.in); System.out.println("before"); int i = scanner.nextInt(); String s1 = scanner.nextLine() 阅读全文
posted @ 2020-05-13 10:01 CyberPelican 阅读(173) 评论(0) 推荐(0) 编辑
摘要: JavaBean DO (Domain Object) 领域对象 就是从现实世界中抽象出来的有形或无形的业务实体。一般和数据中的表结构对应。 PO (Persistant Object) 持久对象 用于表示数据库中的一条记录映射成的JavaBean. PO 仅仅用于表示数据,没有任何数据操作。通常遵 阅读全文
posted @ 2020-05-12 18:45 CyberPelican 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 05. Hystrix Dashboard 新建模块加入依赖 无需添加其他任何依赖, 该依赖已经包括spring boot start web 修改yml 添加主启动类 服务提供者yml 这里需要额外对web开启 或是指定 访问localhost:9001/hystrix ​ 出现页面表示成功 De 阅读全文
posted @ 2020-05-12 17:33 CyberPelican 阅读(100) 评论(0) 推荐(0) 编辑
摘要: Spring Boot 默认支持 properties(.properties) 和 YAML(.yml .yaml ) 两种格式的配置文件,yml 和 properties 文件都属于配置文件,功能一样。 Spring Cloud 构建于 Spring Boot 之上,在 Spring Boot 阅读全文
posted @ 2020-05-12 16:58 CyberPelican 阅读(1787) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 29 下一页