第一种:在struts.xml配置文件中配置(最常用)
<constant name="struts.action.extension" value="action,,do"</constant>
第二种:在src下自定义struts.properties配置文件
struts.action.extension=action,,cc
第三种:在web.xml的前端控制器中配置常量
<init-param>
<param-name>struts.action.extension</param-name>
<param-value>action,,do</param-value>
<init-param>
本文介绍了三种在Struts框架中配置URL扩展名的方法:通过struts.xml配置文件、自定义struts.properties文件以及在web.xml中配置前端控制器的常量。
625

被折叠的 条评论
为什么被折叠?



