How to override Spring Security default configuration in Spring Boot

前端 未结 3 726
灰色年华
灰色年华 2021-01-13 03:00

I have a little problem with Spring Boot. I really like Spring Boot, it\'s very convinient tool, which allow me to focus on logic implementation instead of beans configurati

3条回答
  •  一个人的身影
    2021-01-13 03:27

    did you remove this code?

     @Autowired
        public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception{
                auth.inMemoryAuthentication().withUser("user").password("password").roles("USER");
        }
    

提交回复
热议问题