温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

struts2中常量的修改

发布时间:2020-08-03 00:47:48 来源:网络 阅读:410 作者:奔跑吧爽爽 栏目:开发技术

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
在struts2的struts.xml配置文件中,修改配置使用的是<constant>的元素
name属性:指定常量的名称
value属性:指定常量的值

把默认的拦截后缀改为.do 
<constant name="struts.action.extension" value="do"></constant>
 配置开发模式 
<constant name="struts.devMode" value="true"></constant>

</struts>

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI