1、action扩展名
默认扩展名可以去/org/apache/struts2/default.properties中查看
struts.action.extension=action,,
default.properties是struts2常量配置文件,比如struts.i18n.encoding=UTF-8、struts.objectFactory.spring.autoWire = name等等
2、自定义扩展名
当然不能去修改default.properties, 可以在struts.xml文件中配置对应的常量。
<constant name="struts.action.extension" value="action,do,"></constant>
如上,将扩展名设置为了action,do,空。