stdproject/logs/stdproject-backend/error.2025-05-29.log
2025-05-30 09:58:52 +08:00

27 lines
2.1 KiB
Plaintext

2025-05-29 18:19:01.061 [main] ERROR o.s.b.w.e.tomcat.TomcatStarter - Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'jwtAuthenticationFilter': Unsatisfied dependency expressed through field 'userDetailsService': Error creating bean with name 'customUserDetailsService': Unsatisfied dependency expressed through field 'appUserService': Error creating bean with name 'appUserServiceImpl': Unsatisfied dependency expressed through field 'passwordEncoder': Error creating bean with name 'securityConfig' defined in file [D:\Trae_space\StdProject\backend\target\classes\com\stdproject\config\SecurityConfig.class]: Unsatisfied dependency expressed through constructor parameter 1: Error creating bean with name 'jwtAuthenticationFilter': Requested bean is currently in creation: Is there an unresolvable circular reference?
2025-05-29 18:19:01.139 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -
***************************
APPLICATION FAILED TO START
***************************
Description:
The dependencies of some of the beans in the application context form a cycle:
┌─────┐
| jwtAuthenticationFilter (field private org.springframework.security.core.userdetails.UserDetailsService com.stdproject.config.JwtAuthenticationFilter.userDetailsService)
↑ ↓
| customUserDetailsService (field private com.stdproject.service.IAppUserService com.stdproject.config.CustomUserDetailsService.appUserService)
↑ ↓
| appUserServiceImpl (field private org.springframework.security.crypto.password.PasswordEncoder com.stdproject.service.impl.AppUserServiceImpl.passwordEncoder)
↑ ↓
| securityConfig defined in file [D:\Trae_space\StdProject\backend\target\classes\com\stdproject\config\SecurityConfig.class]
└─────┘
Action:
Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically by setting spring.main.allow-circular-references to true.