How to remove Open Session in View from Project?

267 views Asked by At

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.

0

There are 0 answers