You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, I only initialize the database connection when the application is accessed.
If the database connection has errors, I can't find the problem quickly.
I tried some methods and still can't solve it.
E.g
@Bean
public LazyInitializationExcludeFilter excludeFilter() {
return LazyInitializationExcludeFilter.forBeanTypes(HikariDataSource.class);
}
E.g
spring:
main:
lazy-initialization: false
I have two apps with this problem now. One of them runs on JDK8 and the other runs on JDK13.