摘要: 原文链接: "Spring Boot 如何同时支持 http 与 https 访问?" ___ 大多数项目要么要求 https 协议来访问要么直接用 http 协议,但有些项目就是这么奇怪要求同时支持两种协议。 此示例中使用Spring Boot 内置的 tomcat 服务器,我拿到的 SSL 证书 阅读全文
posted @ 2020-03-01 16:34 壹言 阅读(898) 评论(0) 推荐(0) 编辑
摘要: 原文链接: "Spring Boot2.x 动态数据源配置" 基于 Spring Boot 2.x、Spring Data JPA、druid、mysql 的动态数据源配置Demo,适合用于数据库的读写分离等应用场景。通过在Service层方法上添加自定义注解实现读写不同的数据库。 配置文件已配置好 阅读全文
posted @ 2020-03-01 12:26 壹言 阅读(858) 评论(0) 推荐(0) 编辑