dynamic-datasource can not find primary datasource
时间: 2023-10-27 14:44:17 浏览: 42
There could be several reasons why the dynamic-datasource library is not able to find the primary datasource. Here are a few things you can check:
1. Verify that the primary datasource is configured correctly in your application's properties file. Make sure that the URL, username, and password are all correct.
2. Check that the correct driver class is being used for the primary datasource. The driver class should match the type of database you are using.
3. Make sure that the primary datasource is marked as the default datasource in the dynamic-datasource configuration.
4. Check if the primary datasource is up and running. You can try connecting to it directly using a database client to verify that it is working properly.
5. Check the logs for any error messages related to the datasource configuration. This can provide more information on what went wrong and how to resolve it.
If none of these solutions work, you can try reaching out to the dynamic-datasource community for further assistance.