The dependencies of some of the beans in the application context form a cycle:
jwtSecurityConfig defined in URL [jar:file:/Users/Downloads/java-ecom/backend/target/bundle-java-1.0.0.jar!/BOOT-INF/classes!/com/akveo/bundlejava/config/JwtSecurityConfig.class]
┌─────┐
| tokenService defined in URL [jar:file:/Users/Downloads/java-ecom/backend/target/bundle-java-1.0.0.jar!/BOOT-INF/classes!/com/akveo/bundlejava/authentication/TokenService.class]
↑ ↓
| bundleUserDetailsService defined in URL [jar:file:/Users/Downloads/java-ecom/backend/target/bundle-java-1.0.0.jar!/BOOT-INF/classes!/com/akveo/bundlejava/authentication/BundleUserDetailsService.class]
↑ ↓
| userService (field private com.akveo.bundlejava.authentication.TokenService com.akveo.bundlejava.user.UserService.tokenService)
└─────┘
APPLICATION FAILED TO START
Description:
The dependencies of some of the beans in the application context form a cycle:
jwtSecurityConfig defined in URL [jar:file:/Users/Downloads/java-ecom/backend/target/bundle-java-1.0.0.jar!/BOOT-INF/classes!/com/akveo/bundlejava/config/JwtSecurityConfig.class] ┌─────┐ | tokenService defined in URL [jar:file:/Users/Downloads/java-ecom/backend/target/bundle-java-1.0.0.jar!/BOOT-INF/classes!/com/akveo/bundlejava/authentication/TokenService.class] ↑ ↓ | bundleUserDetailsService defined in URL [jar:file:/Users/Downloads/java-ecom/backend/target/bundle-java-1.0.0.jar!/BOOT-INF/classes!/com/akveo/bundlejava/authentication/BundleUserDetailsService.class] ↑ ↓ | userService (field private com.akveo.bundlejava.authentication.TokenService com.akveo.bundlejava.user.UserService.tokenService) └─────┘