当testOnBorrow设置为true时,连接sqlserver 抛出异常
org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException
Expected Result:
Actual Result:
If there is an exception,or aop invalid,please attach the exception trace:
Please fill it out carefully, or it will be closed. 请认真填写,不然会直接关闭。
Enviroment
JDK Version(required): 1.8
SpringBoot Version(required): 2.4.2
dynamic-datasource-spring-boot-starter Version(required):3.5.2
druid Version(optional):1.2.5
Describe what happened
当testOnBorrow设置为true时,连接sqlserver 抛出异常 org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException
Expected Result:
Actual Result:
If there is an exception,or aop invalid,please attach the exception trace:
Steps to reproduce
Step 1
Step 2
Step 3