순환참조1 [에러모음] The dependencies of some of the beans in the application context form a cycle 에러 설명 자바 프로젝트 중 2개의 클래스가 서로를 참조하는 형태를 가질 때 생기는 에러 SecurityConfig.java @Configuration @EnableWebSecurity @EnableGlobalMethodSecurity(securedEnabled = true, prePostEnabled = true) @RequiredArgsConstructor public class SecurityConfig extends WebSecurityConfigurerAdapter{ @Autowired private PrincipalOauth2UserService principalOauth2UserService; // 문제되는 부분 @Bean public BCryptPasswordEncoder encodePwd.. 2023. 3. 18. 이전 1 다음