问题1:
Eclipse 提示:Description Resource Path Location Type
web.xml is missing and <failOnMissingWebXml> is set to true pom.xml /weld line 7 Maven Java EE Configuration Problem
解决办法:
1.找到webapp文件夹,右键->New->Folder
2.输入文件夹名称WEB-INF
3.在WEB-INF文件夹中建一个web.xml
4.project->clean->build all
问题2:
POM.xml 添加spring配置是提示:
Resource Path Location Type cvc-complex-type.2.4.a: Invalid content was found starting with element 'dependency'. One of '{"http://maven.apache.org/POM/4.0.0":parent, "http://maven.apache.org/POM/4.0.0":url, "http://maven.apache.org/POM/4.0.0"
解决办法:
缺少:<dependencies></dependencies>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>5.0.7.RELEASE</version>
</dependency>
......
</dependencies>