@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
auth.inMemoryAuthentication().withUser("abcde").password("123456").roles("USER");
}
Run Code Online (Sandbox Code Playgroud)
而且我在最后一行收到错误,它说
The type org.springframework.security.authentication.AuthenticationManager cannot be resolved. It is indirectly referenced from required .class files
Run Code Online (Sandbox Code Playgroud)
我找了一个解决方案,找不到解决方法.