Open chandanwestern opened 2 years ago
Description:
The dependencies of some of the beans in the application context form a cycle:
┌─────┐ | jwtRequestFilter (field private com.western.security.api.service.JwtService com.western.security.api.configuration.JwtRequestFilter.jwtService) ↑ ↓ | jwtService (field private org.springframework.security.authentication.AuthenticationManager com.western.security.api.service.JwtService.authenticationManager) ↑ ↓ | webSecurityConfiguration (field private com.western.security.api.configuration.JwtRequestFilter com.western.security.api.configuration.WebSecurityConfiguration.jwtRequestFilter) └─────┘
add this application.properties file
spring.main.allow-circular-references=true
Description:
The dependencies of some of the beans in the application context form a cycle:
┌─────┐ | jwtRequestFilter (field private com.western.security.api.service.JwtService com.western.security.api.configuration.JwtRequestFilter.jwtService) ↑ ↓ | jwtService (field private org.springframework.security.authentication.AuthenticationManager com.western.security.api.service.JwtService.authenticationManager) ↑ ↓ | webSecurityConfiguration (field private com.western.security.api.configuration.JwtRequestFilter com.western.security.api.configuration.WebSecurityConfiguration.jwtRequestFilter) └─────┘