【发布时间】:2020-08-17 18:27:25
【问题描述】:
https://github.com/vikramsinghsengar007/SpringbootMultiDataSource
请检查上述项目,因为我没有收到主数据源的任何错误,但它没有从数据库中获取记录。我检查了日志并获得了正确的 sql。
休眠:
select product0_.id as id1_1_, product0_.brand as brand2_1_, product0_.madein as madein3_1_, product0_.name as name4_1_, product0_.price as price5_1_
from Product product0_
但相同的配置适用于辅助数据源。
【问题讨论】:
-
请包含可用于复制您的问题的代码。请不要链接到问题解决后会发生变化的任何外部网站。
标签: mysql spring-boot spring-data-jpa spring-data