問題是,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