検証されていないと私は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 –