- 博客(2)
- 收藏
- 关注
原创 SpringBoot 动态切换数据源,注意问题(JPA,Mybatis兼容)
JPA多数据源 注意事项, 在同一个方法中调用自定义注解 aop 切换数据源 aop操作的 仅仅只是 替换 TreadLocal 中 线程私有的 DataSource 的key 自定义注解的使用, 下面的方法适用于, 实现JpaRepository接口的方法 public interface StudentDao extends JpaRepository<Student, Intege...
2019-05-21 20:40:58
3721
5
原创 spring-cloud笔记
spring-cloud 日记 -服务注册发现 @EnableEurekaServer spring-cloud client @EnableEurekaClient spring-cloud config server 配置服务器 @EnableConfigServer //也可以用@EnableEurekaServer 注册到注册服务器上 基本配置 @Enab...
2018-08-14 20:54:15
144
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人