Home > Back-end >  Jeecg boot2.4.2 version of multiple source how configuration.
Jeecg boot2.4.2 version of multiple source how configuration.

Time:04-27

On the Internet, to the service class and add @ DS (" multi - datasource1 ") doesn't work well,

CodePudding user response:

https://blog.csdn.net/loa_loa/article/details/106092958? Utm_medium=distribute. Pc_relevant_bbs_down. None - task - blog - baidujs - 1. Nonecase& Depth_1 - utm_source=distribute. Pc_relevant_bbs_down. None - task - blog - baidujs - 1. Nonecase

CodePudding user response:

As the example, but doesn't work,

CodePudding user response:

https://blog.csdn.net/ABestRookie/article/details/110206225? Ops_request_misc=% 257 b % 2522 request 2522% % 255 fid % 253 a 2522% % 2522% % 2522161942816616780274143907% % 2522 SCM 252 c 253 a % 252220140713.130102334 PC % 255 fblog. % 2522% 257 d & amp; Request_id=161942816616780274143907 & amp; Biz_id=0 & amp; Utm_medium=distribute. Pc_search_result. None - task - blog - 2 ~ blog ~ first_rank_v2 ~ rank_v29-1-110206225. Pc_v2_rank_blog_default & amp; A4 utm_term E5=% % % 9 a B0 % E6%95% % E6 % % % AE 8 d % % E6 BA 90

CodePudding user response:

1. In the spring MVC - - hibernate. Add a data source in the XML this configuration file
2. Add the data source (and modify the spring MVC - hibernate. The XML file:
 





3. In the org. Jeecgframework. Core. The extend. The datasource. DataSourceType this class to add new data source name (no increase of complains) :
 
Package org. Jeecgframework. Core. The extend. The datasource;

Public enum DataSourceType {
DataSource_a, dataSource_b
}
  • Related