我无法在我的类UserDetailsService中自动启动SecurityConfig,并且在尝试启动应用程序时出现了错误。我不知道什么不起作用,我已经用相同的配置启动了一个项目。org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'bCryptPasswordEncoderorg.springframework.beans.factory.BeanCurrentlyI
不过,我试着看了几个类似的问题,它们似乎使用了不同的方法/类结构。Action:
@Configuration @EnableWebSecurity @RequiredArgsConstructor
public class SecurityConfigurationauthenticationManager
我有一些问题要在我的项目中实现一个密码编码器。我有这个AuthenticationProvider,其中我使用BCryptPasswordEncoder类型的bean自动创建一个bean,该实现被放置在包com.blog.cms.config.security我使用名为BCryptPasswordEncoder的接口PasswordEncoder实现了一个类:public class BCryptPasswordEncoder implementscom.blog