源码关联以及导入源码到myeclipse 相关
来源:互联网 发布:淘宝上买轮胎可靠吗 编辑:程序博客网 时间:2024/06/05 14:31
myeclipse中导入struts2.1.6的源文件
首先到http://struts.apache.org/download.cgi#struts216下载struts-2.1.6-src.zip显示有20MB其实就4MB
在使用使用struts2中需要使用xwork,xwork的源文件需要单独下载,http://www.opensymphony.com/xwork/download.action
点击All: Contains all jars, libs, sources and docs,
本人是新手对Maven不了解。
这个xwork是all-in-one的包,将里面的xwork-2.1.2-sources.jar拿出来。
接下来就是Myeclipse导入这些源码了。
选择你的项目右键Properties--》java build path --》选择struts-core-2.1.6.jar
点击jar文件前面的小三角符号--》Source Attacment--》Edit--》External File --》选择刚才下载的struts-2.1.6-src.zip即可
xwork-2.1.2.jar源文件的导入一样,在此不多废话,已经很详细了。
=====================
在MyEclipse显示struts2源码和doc文档及自动完成功能
在MyEclipse中显示struts的源码
-------右键点击/webAppName/WebRoot/WEB-INF/lib/struts2-core-2.1.8.1.jar
-------propertes
-------Java Source Attachment
-------External Folder
选择目录:D:/struts-2.1.8.1/src/core/src/main/java
在MyEclipse中显示struts的doc文档
-------右键点击/Struts2_01/WebRoot/WEB-INF/lib/struts2-core-2.1.8.1.jar
-------propertes
-------Javadoc Location
-------Javadoc URL
-------Browser
选择目录:file:/D:/struts-2.1.8.1/docs/struts2-core/apidocs/
Struts.xml文件添加自动完成功能(不过MyEclipse8.0中已经不用再配置这个了,里面自带了struts下的xml标准)
-------先在struts文件夹中的lib包中的 struts2-core-2.1.8.1.jar 解压开,里面有struts-2.0.dtd 文件
-------struts.xml文件中头部有:http://struts.apache.org/dtds/struts-2.0.dtd
-------window
-------preferences
-------搜索catalog
-------add
-------在Location中加入struts-2.0.dtd所在的地址,Key Type 中选择URL,Key中加入http://struts.apache.org/dtds/struts-2.0.dtd
===================
- 源码关联以及导入源码到myeclipse 相关
- java myeclipse 关联源码到外部库 以及关联Javadoc
- struts2的源码关联到myeclipse中
- 将struts源码关联到myeclipse中
- MyEclipse导入jar包以及源码
- myeclipse关联SDK源码
- myeclipse关联SDK源码
- MyEclipse Eclipse 关联源码
- MyEclipse关联源码
- myEclipse 导入jdk源码
- Tomcat7源码导入MyEclipse
- Myeclipse 导入 tomcat 源码
- weka源码导入Myeclipse
- Myeclipse 导入 tomcat 源码
- myeclipse导入tomcat源码
- Spring源码导入MyEclipse
- Tomcat7源码导入MyEclipse
- 怎样将struts2的源码关联到myeclipse中
- sqlserver express自动备份数据库
- 关于整合ucenter 时无法在uc.php中写入第三方cookie的解决办法
- OpenSessionInView模式总结
- js在IE和FF下的不同
- 从html到flex
- 源码关联以及导入源码到myeclipse 相关
- linux c 编译时出现warning: assignment makes pointer from integer without a cast原因
- OGRE分析之设计模式Adapter
- Asp.Net 构架(Http Handler 介绍) - Part.2
- oracle 基础
- Git 管理源代码
- 向量中断与非向量中断的区别
- c# gdi+ cpu监视器
- OGRE分析之设计模式Singleton,Factory Method,Abstract Factory