问题一 pom.xml出现“web.xml is missing and is set to true”解决办法
解决办法1:在pom.xml文件中手动添加如下配置:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
解决办法2:在pom.xml文件中手动添加如下配置:
<properties>
<failOnMissingWebXml>false</failOnMissingWebXml>
</properties>
问题二 cvc-complex-type.2.4.d: Invalid content was found starting with element ‘url-pattern’. No child element is expected at this point.解决办法
解决办法:将“http://www.springmodules.org/schema/cache/springmodules-cache.xsd
http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd”这段
话加入到xml文件的"xmlns:xsi="的标签中