org.springframework.security.web.firewall.RequestRejectedException: The request was rejected because

org.springframework.security.web.firewall.RequestRejectedException:请求被拒绝,因为URL未规范化
ps:可能前台请求多加/了

解决方法:`
//允许多请求地址多加斜杠 比如 /msg/list //msg/list

 - @Bean  public HttpFirewall httpFirewall() {
         return new DefaultHttpFirewall();
     }

`

上一篇:Element 'configuration' cannot have character [children], because the type's content


下一篇:Nginx 开启,关闭,重启,查看命令,错误解决:Job for nginx.service failed because the control process exited with error