RuntimeException: dynamic-datasource Please check the setting of primary
时间: 2023-09-02 10:08:06 浏览: 171
解决 java.lang.RuntimeException: Could not generate DH keypair异常处理所需的bcprov的jar
5星 · 资源好评率100%
这个错误是由于动态数据源配置出现问题导致的。根据引用\[1\]和引用\[2\]的信息,错误信息是"Caused by: java.lang.RuntimeException: dynamic-datasource Please check the setting of primary"。解决这个问题的方法可能是检查主数据源的设置。你可以参考引用\[3\]中提供的依赖来解决这个问题。
#### 引用[.reference_title]
- *1* [springboot项目启动失败(dynamic-datasource Please check the setting of primary)](https://blog.csdn.net/qidaihuimou/article/details/124972276)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [SpringBoot - java.lang.RuntimeException: dynamic-datasource Please check the setting of primary](https://blog.csdn.net/goodjava2007/article/details/125185188)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [记录:dynamic-datasource Please check the setting of primary...【解决方案】](https://blog.csdn.net/weixin_43970743/article/details/121633702)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文