Struts2_HelloWorld_5

1、设置开发模式:

  更换配置文件中的 action name="hello_struts",重新访问会出错,因为配置没有立刻响应文件的即时修改。
  需要加上配置 <constant name="struts.configuration.xml.reload" value="true"/>
  然后重新启动,以后修改配置文件就会马上有反馈。

  试过<constant name="struts.devMode" value="true" />,没用。
2、读源码
导入源码:以struts2-core-2.3.16.1.jar 为例

就可以查看源码了:


查看java docs 文档,在这个版本(2.3.16)我还没找到方法。

原文地址:https://www.cnblogs.com/ShawnYang/p/6669511.html