struts 从struts 2版本 升级6.8.0 版本

struts 升级6.8.0 版本

新加

commons-text-1.11.0.jar

caffeine-2.9.3.jar

升级

struts2-core > 6.8.0.jar

struts2-json-plugin > 6.8.0.jar

struts2-spring-plugin > 6.8.0.jar

freemarker > 2.3.33.jar

ognl > ognl-3.3.4.jar

commons-lang3 > 3.14.0.jar

删除: struts2 2.5.33.jar

struts2-core-2.5.33.jar

struts2-spring-plugin-2.5.33.jar

struts2-junit-plugin-2.5.33.jar

将

import com.opensymphony.xwork2.ActionContext;

import com.opensymphony.xwork2.ActionSupport;

换成

import org.apache.struts2.ActionContext;

import org.apache.struts2.ActionSupport;

struts*.xml配置文件改成

<!-- 替换原有2.* DTD -->

<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 6.0//EN" "https://struts.apache.org/dtds/struts-6.0.dtd">

相关推荐
若亦_6 分钟前
排序>>交换排序
java·数据结构·算法
Wang's Blog11 分钟前
MongoDB 地理位置上报实战:从接口设计到覆盖写入的完整实现
java·交友
鬼手点金29 分钟前
Skills:领域能力的可组合单元
java·人工智能·笔记·自动化·1024程序员节
captain3769 小时前
MyBatis(入门5)其他查询操作
java·数据库·spring boot·mybatis
Novproxy_Z9 小时前
商用代理避坑:如何识别商家拿机房 IP 冒充住宅 IP
java·网络·tcp/ip
文丑颜不良啊10 小时前
LeetCode1481~1500题目解析
java·leetcode
2601_9628857210 小时前
quotes 字段全解:涨跌幅、振幅、换手率的口径与单位
java·前端·spring
前端精髓11 小时前
调用openrouter的免费API模型
java·前端·javascript
步行cgn11 小时前
Spring MVC 拦截器 Interceptor 详解:从执行流程到实战应用
java·spring·mvc
文丑颜不良啊11 小时前
LeetCode1381~1400题目解析
java·leetcode