Spring Boot: How to specify the PasswordEncoder?

前端 未结 15 1209
醉梦人生
醉梦人生 2020-12-02 06:27

Currently I got the main class:

package com.recweb.springboot;

import org.springframework.boot.SpringApplication;
im         


        
15条回答
  •  广开言路
    2020-12-02 07:14

    I simply added

     @Bean
    public static NoOpPasswordEncoder passwordEncoder() {
     return (NoOpPasswordEncoder) NoOpPasswordEncoder.getInstance();
    }
    

    To the configuration class

提交回复
热议问题