-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Hello there.
I have a compatibility issue.
Before I was using Spring Boot v2.7.18, Spring v5.3.31 with mybatis-spring-boot-starter v3.0.1 and everything was perfect.
Due to policy, I had to upgrade to Spring Boot v3.2.3, Spring v6.1.4, which led to a problem with factoryBeanObjectType so I updated the starter to version 3.0.3 and here it comes my problem.
Even with the exact same configuration, ibatis can not find jdcb connection
Message: null, cause: org.apache.ibatis.exceptions.PersistenceException: \r\n### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection\r\n### The error may exist in .../Mapper.java (best guess)\r\n### The error may involve ...Mapper.getAll\r\n### The error occurred while executing a query\r\n### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection
Did anyone have the same problem? Is there any solution for it?
I have standard database connection properties in application.properties
spring.datasource.url=jdbc:sqlserver://myServer;databaseName=myDatabse;encrypt=false;integratedSecurity=true;
spring.datasource.driverclassname=com.microsoft.sqlserver.jdbc.SQLServerDriver
spring.datasource.max_active=20
spring.datasource.minimum_idle=1
spring.datasource.maximum_pool_size=20
Thank you all for your time.