In the process of transforming MAVEN project into a Web project, there are a lot of problems, the following summarizes, the first is the Tomcat problem, tomcat configuration, if you open Tomcat in Eclipse, the page can not be displayed, this is the environment path configuration is wrong, The path to Tomcat should be configured in Eclipse if the published project error is error Dispatcherservlet-context initialization Failedorg.springframework.beans.factory.BeanDefinitionStoreException:Failed to read candidate component Class:file, This indicates that the user's Spring-web package version is too low to upgrade the package
Solution Example:
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-jpa</artifactId>
<version>1.3.2.RELEASE</version>
</dependency>
If the Java resource error during the deployment project, but the class is correct, there are two possible problems, the first is that the JDK needs to be re-selected, compile and maven in Project facts two places, if also reported is wrong, Maven jar is not associated
You need to set up eclipse:
Project, properties, Deployment Assembly, Add, Java Build Path Entries, select Maven Dependencies, Finish-> ; Ok
Java Web Deployment issues