We are using Springboot 2 and sometime ago we started facing HikariPool connection exhaustion issue. Upon Debugging we found out the that hibernate Open Session in View is by default enabled in Spring.
Now my question is how do we disable it. As the codebase is big enough. If We simply disable it to false. Some part of our code breaks as one session is not being maintained.