I'm trying to run Spring Boot app which connects to remote MySQL server. I get exception during startup time:
Caused by: java.lang.IllegalStateException: @Order on WebSecurityConfigurers must be unique. Order of 100 was already used on org.engine.security.WebSecurityConfig$$EnhancerBySpringCGLIB$$de8b459d@49e2b3c5, so it cannot be used on org.engine.security.WebSecurityConfiguration$$EnhancerBySpringCGLIB$$e6562c81@5a484ce1 too.
at org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration.setFilterChainProxySecurityConfigurer(WebSecurityConfiguration.java:147
Full log: https://pastebin.com/xDguJ0Vz
Locally it's working fine. Probably the connect time to MySQL is the issue. Do you know how I can increase the connect time in order to fix this issue?