- 博客(2)
- 资源 (13)
- 收藏
- 关注
原创 springboot+mysql 多数据源配置
Springboot 多数据源配置1、配置文件#主数据源配置master.spring.datasource.driver = com.mysql.jdbc.Drivermaster.spring.datasource.url = ...master.spring.datasource.username = ...master.spring.datasource.password = ...master.spring.datasource.initialPoolSize = 1master.
2020-07-01 17:09:50 852
原创 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
今天配置多数据源的时候碰到这个问题,问题的根源:xml和repositopry不对应没有扫描到xml没有扫描到repositopry我的属于第三种,我的repository文件树如下:abRepository1cRepository2我的扫描文件的路径是@MapperScan(basePackages = {"com.xxx.xxx.a"}最后发现改为@MapperScan(basePackages = {"com.xxx.xxx.a.b"}问题完美
2020-07-01 17:07:05 271
ADT-22.3.0
2017-03-10
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人