我与春天的安全性是一个新手,我已经创建了一个基本的认证为我的春天启动的应用程序尝试一下春季启动基本身份验证的用户名未通过验证
我创建MYGlobalAuthenticationConfigurerAdapter 这样的:
注意,我从性能加载用户名和密码文件,我验证对值
和MyWebSecurityConfigurerAdapter这样的:
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests().anyRequest().fullyAuthenticated().and().
httpBasic().and().
csrf().disable();
}
带有@EnableWebSecurity
注释。
我尝试邮递员使用用户名和密码,我每次更改用户名的请求被确认,即使用户名是不一样的一个我把我的属性文件
你能看看我的问题请@md zahid raza? https://stackoverflow.com/questions/46065063/spring-boot-basic-authentication –