状態:
ブラウザを介してアクセス要求を送信します。
localhost:9000 / files / download
ユーザーとパスワードを入力してください
パスワードが設定されていない場合、コンソールには
生成されたセキュリティパスワードの使用:75a2959a-522c-4335-830d-d247e7b4743b
普通に訪問します
解決
@Configuration
public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Override
public void configure(WebSecurity web) throws Exception {
//忽略权限授权接口,填写路径就好
web.ignoring().antMatchers("/sysUsers/*", "/auth/*", "/files/*");
}
// @Override
// public void configure(HttpSecurity http) throws Exception {
//// 任意请求允许无授权访问
// http.authorizeRequests()
// .anyRequest().permitAll();
//// http.csrf().disable().exceptionHandling().authenticationEntryPoint(getAccessDeniedHandler());
// }
}