您的位置:首页 > 编程语言 > Java开发

Struts2学习总结01

2016-03-28 20:28 429 查看
1.struts.xml中的常量设置:

<constant name="struts.enable.DynamicMethodInvocation" value="true" />


动态方法调用模式

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


开发者模式:value设置成true之后,当改变struts.xml的时候,就不用重新启动服务器或者重新部署了,可以直接访问。

2.在struts.xml中设置自动提示功能:

<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">


在Windows-->Preferences→.....→xml catalog→Add(Location:设置dtd的位置,Key type:设置为URI ,

Key设置为:http://struts.apache.org/dtds/struts-2.3.dtd ).

3.设置查看源码和doc的路径:

struts2-core-2.3.28.jar右键→Properties→Java Source Attachment(External Folder)和Javadoc Location(Browse)

4.设置xml文件的打开方式:



5.拷贝自己的项目:

当你拷贝一个项目的时候,需要改变Web Context-root 路径,项目右键→Properties→MyEclipse→Web.

6.导入别人的项目:JRE System Library如果和别人的不一样,则需要改成自己的lib
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: