eclipse 创建或导入的maven web项目常见问题汇总

来源:互联网 发布:螃蟹 知乎 编辑:程序博客网 时间:2024/05/22 15:24

问题一:
eclipse中项目由于convert to maven project
或者 Project Facets 选中Dynamic web Module 后,项目转为web项目。
tomcat7启动web项目出现[SetContextPropertiesRule]{Context} Setting property ‘source’ to ‘org.eclipse.jst.jee.server:HellowordSpringMVC’ did not find a matching property.

1,修改项目所在位置的.settings/.jsdtscope、org.eclipse.wst.common.component两个文件“`
其中 .jsdtscope修改如下:

<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="WebContent"/>

把path=”webContent” 改为 path=”src/main/webapp”

org.eclipse.wst.common.component修改如下地方:

“`
中source-path=”/WebContent”改为:source-path=”/src/main/webapp”

原创粉丝点击