Error Servlet.init () for servlet Springmvc threw exception in idea

Source: Internet
Author: User


It was this mistake that cost me a lot of mental labor ...

Online Search is the solution:

1. Replacing the JDK with 1.7 or 1.7 of the following is useless to me.

2. Replacing spring version 4.0 is no use to me.

3. Test the useful method, replace your pom.xml, I use idea software.

Change my own pom ... Here's my pom.

?XML version= "1.0"encoding= "UTF-8"?> <Projectxmlns= "http://maven.apache.org/POM/4.0.0"xmlns:XSI= "Http://www.w3.org/2001/XMLSchema-instance" XSI: schemalocation= "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelversion>4.0.0</modelversion> <Packaging>war</Packaging> <name>springmvc</name> <groupId&GT;CN. springmvc</groupId> <Artifactid>springmvc</Artifactid> <version>1.0-snapshot</version> <URL>http://maven.apache.org</URL> <Dependencies> <Dependency> <groupId>junit</groupId> <Artifactid>junit</Artifactid> <version>3.8.1</version> <Scope>test</Scope> </Dependency> <!--HTTPS://MVNREPOSITORY.COM/ARTIFACT/ORG.SPRINGFRAMEWORK/SPRING-WEBMVC--> <Dependency> <groupId>org.springframework</groupId> <Artifactid>spring-webmvc</Artifactid> <version>4.3.7.release</version> </Dependency> <!--beans automatically introduces dependent core into--> <Dependency> <groupId>org.springframework</groupId> <Artifactid>spring-beans</Artifactid> <version>4.2.3.release</version> </Dependency> <!--context dependent n--> <Dependency> <groupId>org.springframework</groupId> <Artifactid>spring-context</Artifactid> <version>4.2.0.release</version> </Dependency> <Dependency> <groupId>junit</groupId> <Artifactid>junit</Artifactid> <version>4.12</version> </Dependency> <!--woven dependency--> <Dependency> <groupId>org.aspectj</groupId> <Artifactid>aspectjweaver</Artifactid> <version>1.8.7</version> </Dependency> <!--https://mvnrepository.com/artifact/org.springframework/spring-web--> <Dependency> <groupId>org.springframework</groupId> <Artifactid>spring-web</Artifactid> <version>4.3.7.release</version> </Dependency> <!--Servlet api--> <Dependency> <groupId>javaee</groupId> <Artifactid>javaee-api</Artifactid> <version>5</version> </Dependency> </Dependencies> < Build> < Resources> <Resource> <Directory>src/main/java</Directory> <includes> <include>**/*.xml</include> </includes> </Resource> </ Resources> </ Build> </Project>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.