URLDecoderUtil 类已从 struts2-core 6.3.0.2 版本中删除。最新版本中此类的替代方案是什么?

问题描述 投票:0回答:1

URLDecoderUtil (org.apache.struts2.util.URLDecoderUtil) 类已从 struts2-core 6.3.0.2 版本中删除。最新版本中此类的替代方案是什么?

找到了替代的 URLDecoder 类(org.apache.struts2.url.URLDecoder)

java struts2 struts-tags versionupgrade
1个回答
0
投票

您可以使用

URLDecoderUtil
。它负责 解码
x-www-form-urlencoded
字符串和查询字符串。

URLDecoderUtil
充当正确 URL 解码实现的外观。从 Struts 2.3.25 开始,它使用 Tomcat
URLDecoder
功能,而不是
java.io
中的功能。

© www.soinside.com 2019 - 2024. All rights reserved.