Spring security antMachers 404 @配置 公共类ProjectSecurityConfig扩展了WebSecurity配置适配器{ @凌驾 受保护的无效配置(HttpSecurity http)引发异常{ http .授权请求() .antMatchers(“/myAccount”).authenticated() .antMatchers(“/notices”).authenticated() .及() .formLogin() .及() .httpBasic(); } }
关于Spring security antMachers 404 @配置 公共类ProjectSecurityConfig扩展了WebSecurity配置适配器{ @凌驾 受保护的无效配置(HttpSecurity http)引发异常{ http .授权请求() .antMatchers(“/myAccount”).authenticated() .antMatchers(“/notices”).authenticated() .及() .formLogin() .及() .httpBasic(); } },spring-security,Spring Security,关于http://localhost:8080/notices,我得到以下回复: { "timestamp": "2021-04-28T20:45:45.160+00:00", "status": 404, "error": "Not Found", "message": "", "path": &
http://localhost:8080/notices
,我得到以下回复:
{
"timestamp": "2021-04-28T20:45:45.160+00:00",
"status": 404,
"error": "Not Found",
"message": "",
"path": "/notices"
}
您能否共享您的Spring Security/Spring Boot版本以及项目中的依赖项