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包

你可能感兴趣的:(技巧性工具栏,jar,java)