Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring security antMachers 404 @配置 公共类ProjectSecurityConfig扩展了WebSecurity配置适配器{ @凌驾 受保护的无效配置(HttpSecurity http)引发异常{ http .授权请求() .antMatchers(“/myAccount”).authenticated() .antMatchers(“/notices”).authenticated() .及() .formLogin() .及() .httpBasic(); } }_Spring Security - Fatal编程技术网

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版本以及项目中的依赖项