struts2 常量配置

来源:互联网 发布:vb.net 打开文件夹 编辑:程序博客网 时间:2024/06/10 00:02

1.避免每次修改后都需要重启服务器:

   在struts.xml 中添加 开发模式:

     <constant name="struts.devMode" value="true"></constant>   

2.查看源文件的方式:

  在源码的jar包上点击右键,选择proerties-->java source attachment--->external  folder  选择 E:\openSource\struts2\soft\struts-2.1.8.1\src\core\src\main\java  即可查看源码。

3.查看帮助文档:

   在源码的jar包上点击右键,选择proerties-->javadoc location-->Browser  选择 E:\openSource\struts2\soft\struts-2.1.8.1\docs\struts2-core\apidocs  然后在java文件中 将光标放在某个类名上,点击f1  就会打开帮助文档。