jar包启动报错:The request was rejected because the URL contained a potentially malicious String “%25“

在这里插入图片描述

问题回显

2023-08-15 23:59:25.990 |-ERROR [http-nio-8182-exec-3] org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/].[dispatcherServlet] [175] -| Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception
org.springframework.security.web.firewall.RequestRejectedException: The request was rejected because the URL contained a potentially malicious String “%25”
在这里插入图片描述
这个错误是由于Spring Security中的请求防火墙引起的。错误信息指出请求被拒绝,因为URL包含了可能是恶意的字符串 “%25”。这通常是为了防止请求注入攻击或其他安全问题。

解决思路

关闭Centos防火墙,重新启动jar包

猜你喜欢

转载自blog.csdn.net/weixin_53742691/article/details/132309608
今日推荐