解决springboot+spring security中:There is no PasswordEncoder mapped for the id "null"
@EnableWebSecuritypublicclassSecurityConfigextendsWebSecurityConfigurerAdapter{@Overrideprotectedvoidconfigure(HttpSecurityhttp)throwsException{http.authorizeRequests().antMatchers("/css/**","/js/**",