java - TOMCAT 9 +Java 8 升级问题:方法 URLDecode(String) 未定义类型 RequestUtil
问题描述
最近我将我的应用程序升级到 Tomcat 9 和 Java 8 并部署了我的 war 文件。当我启动我的应用程序时,我遇到了类似的错误,
An error occurred at line: [3] in the jsp file: [/app/myPage.jsp]
The method URLDecode(String) is undefined for the type RequestUtil
1: </script>
2: <%
3: String fromPage = org.apache.catalina.util.RequestUtil.URLDecode( "redirect" );
在我的 lib 路径 catalina.jar 中有该方法。请指导我缺少什么。
解决方案
推荐阅读
- sql - SQL 视图,基于最后一行计算的新列
- java - Java:无效选择器:指定了无效或非法的选择器
- javascript - 在对话框中加载插入的文本
- symfony4 - 如何解决 ApiPlatform 身份验证错误?
- java - 创建名为“dataSource”的 bean 时出错 [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]
- c# - 正则表达式查找带空格的整数中的无效字符
- flutter - 如何在 Flutter 中更改文本的颜色
- arrays - Google 表格创建 IF 或 IFS
- mapreduce - CouchDB 视图每个键减少一个文档
- entity-framework-core - Entity Framework Core Cosmos DB 提供程序的 Guid 分区键