- 博客(2)
- 收藏
- 关注
转载 springboot 集成双数据源mybatis+jpa
写在前面: 开始只是简单的想实现集成mybatis+双数据源。在网上随便找了一个博客临摹(ctrl+c,ctrl+v)。很顺利的实现了想要的功能。随后发现之前配置的jpa不好使了。所以就在网上又找了另一篇博客继续临摹。哈哈哈哈哈哈! 1、首先,不论有多少个数据源,都只能有一个主数据源(primaryDataSource)。 2、有多少个数据源就写几个数据库配置,因为只是...
2019-07-17 15:49:00
292
转载 idea内启动正常,发布外部tomcat启动报错:Field userMapper in XX required a bean of type 'xx' that could not be found...
1、异常如下: 1 Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled. 2 2019-06-20 16:09:01.641 ERROR 15404 --- [on(3)-127....
2019-06-20 16:15:00
2069
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人