org.springframework.security.web.firewall.RequestRejectedException:请求被拒绝,因为URL未规范化
ps:可能前台请求多加/了
解决方法:`
//允许多请求地址多加斜杠 比如 /msg/list //msg/list
- @Bean public HttpFirewall httpFirewall() {
return new DefaultHttpFirewall();
}
`
2024-03-15 08:33:41
org.springframework.security.web.firewall.RequestRejectedException:请求被拒绝,因为URL未规范化
ps:可能前台请求多加/了
解决方法:`
//允许多请求地址多加斜杠 比如 /msg/list //msg/list
- @Bean public HttpFirewall httpFirewall() {
return new DefaultHttpFirewall();
}
`