杭州模板建站软件,网上买保险哪个平台好,做网站与考研,网站建设合同中英文模板转载自 MyEclipse web项目导入Eclipse#xff0c;详细说明最近导入一个MyEclipse的项目#xff0c;具体是#xff1a;spring4.1的web项目#xff0c;同时遇到了一些问题#xff0c;总结一下。
1、进入项目目录#xff0c;找到.project文件#xff0c;打开。
增加一个详细说明最近导入一个MyEclipse的项目具体是spring4.1的web项目同时遇到了一些问题总结一下。
1、进入项目目录找到.project文件打开。
增加一个buildCommand(如果有的话就不用添加)
buildCommand
span stylewhite-space:pre /spannameorg.eclipse.wst.validation.validationbuilder/name arguments /arguments
/buildCommand
2、找到natures…/natures代码段。加入如下标签内容并保存
natures natureorg.eclipse.wst.common.project.facet.core.nature/nature natureorg.eclipse.wst.common.modulecore.ModuleCoreNature/nature natureorg.eclipse.jem.workbench.JavaEMFNature/nature
/natures 4、项目目录下的.classpath文件把所有WebRoot字符串改为WebContent保存。
5、项目目录下的.setting文件夹下的org.eclipse.wst.common.component文件把所有WebRoot字符串改为WebContent保存
6、把目录下WebRoot的文件夹改名为WebContent。
7、在eclipse中Java Resources:src目录的Libraries里添加web服务器需要的包选择BiuldPath—–configure Build Path——当前窗面下选择选择Add Library—–server Runtime——选择需要的web服务器
8、在eclipse的项目上点右键刷新项目。
9、在项目上点右键进入属性properties在左侧列表项目中点击选择“Project Facets”在右侧选择“Dynamic Web Module”和”Java”点击保存即可。如果项目正常编译没有报错下次就不用看了。
我遇到这样一个问题在网上查了半天也没查到什么解决版本最后自己琢磨了下由于MyEclipse里的用到了jstl导入到Eclipse里也带过来了怎么把jst.web.jstl和me.spring去掉呢
1、修改项目.setting文件夹下的org.eclipse.wst.common.project.facet.core.xml文件把
installed facetjst.web.jstl version1.2.1/
installed facetme.spring version4.1/
这两行删除。
2、修改.classpath文件去掉
attribute nameowner.project.facets valuejst.web.jstl/
PS
a 如果不修改第二步那么你在修改Project facts时可能会报以下错误
Failed while changing version of Java to 1.8. Project facet jst.web.jstl has not been defined.
b如果不修改上面的第五部“5、项目目录下的.setting文件夹下的org.eclipse.wst.common.component文件把所有WebRoot字符串改为WebContent保存”可能会报以下错误
Eclipse java build path中Web App Libraries无法自动找到WEB-INF的lib目录