问题是,BCryptPasswordEncoder未在登录过程中对密码进行加密,因此登录失败,我们假设密码为123,并以散列形式存储在数据库中,密码123返回invalid_grants,但是当从客户端发送散列密码时,返回访问令牌。当密码编码器的密码被注释时也是可以的。 App.java @SpringBootApplication
public class App {
@Bean
我想用Spring数据mongodb实现自定义回购。 Application.java: @SpringBootApplication
public class Application implements CommandLineRunner{
@Autowired
private CustomerRepositoryCustom repo;
public st