We have a Spring Boot 3.2.5 app that calls a SQL DB via jdbc to retrieve a map, then uses that map in an operation. We are in the process of migrating this app off Karaf (on Java 8) onto Spring Boot (on Java 17), and we are seeing that in our testing the Spring Boot app does not pick up map changes in the DB without restarting the app. In our Karaf version, the map changes are picked up without a restart. Neither the Java app code, nor the DB driver has been changed, only dependencies for Karaf to Spring Boot.
For clarity, we do not want any caching in our jdbc connections. We are trying to turn off whatever is causing this caching behavior.
We saw Spring Boot JdbcTemplate - disable statement cache? but this solution did not impact our test results (map change in DB was still not picked up by subsequent operations in the Spring Boot app without a restart).
We tried a variety of jdbc pool settings, but none resolved the issue.
Can someone point us to where we should be looking? I can't post code here, unfortunately.
Thanks