Executing ./gradlew clean test resulted in an exception of com.baomidou.dynamic.datasource.exception.ErrorCreateDataSourceException.
If there is an exception,or aop invalid,please attach the exception trace:
$ ./gradlew clean test
> Task :test
OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
AddRemoveDatasourceTest > testAddAndRemoveDataSource() FAILED
com.baomidou.dynamic.datasource.exception.ErrorCreateDataSourceException at AddRemoveDatasourceTest.java:37
2023-08-11T18:46:07.504+08:00 INFO 6833 --- [ionShutdownHook] c.b.d.d.DynamicRoutingDataSource : dynamic-datasource start closing ....
2023-08-11T18:46:07.504+08:00 INFO 6833 --- [ionShutdownHook] c.b.d.d.DynamicRoutingDataSource : dynamic-datasource all closed success,bye
1 test completed, 1 failed
> Task :test FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///home/linghengqian/TwinklingLiftWorks/git/public/dynamic-datasource-v413-test/build/reports/tests/test/index.html
* Try:
> Run with --scan to get full insights.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.2.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 4s
4 actionable tasks: 4 executed
Steps to reproduce
Step 1
Perform the following steps on a new Ubuntu 22.04.3 instance.
sudo apt install unzip zip curl sed -y
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install java 17.0.8-graalce
sdk use java 17.0.8-graalce
git clone git@github.com:linghengqian/dynamic-datasource-v413-test.git
cd ./dynamic-datasource-v413-test/
./gradlew clean test
Please fill it out carefully, or it will be closed. 请认真填写,不然会直接关闭。
Enviroment
JDK Version(required):
17.0.8
SpringBoot Version(required):
3.1.2
dynamic-datasource-spring-boot-starter Version(required):
4.1.3
druid Version(optional):
Describe what happened
dynamic-datasource-spring-boot3-starter
manual creation of dataSource failed. I created a git to verify, and it's in the https://github.com/linghengqian/dynamic-datasource-v413-test . I give the Error Log and reproduction steps in it.Expected Result:
Actual Result:
./gradlew clean test
resulted in an exception ofcom.baomidou.dynamic.datasource.exception.ErrorCreateDataSourceException
.If there is an exception,or aop invalid,please attach the exception trace:
Steps to reproduce
git clone git@github.com:linghengqian/dynamic-datasource-v413-test.git cd ./dynamic-datasource-v413-test/ ./gradlew clean test