java - IDEA checks out the project from SVN and runs it on tomcat. Please provide detailed process
某草草
某草草 2017-06-23 09:13:03
0
2
1399

I have been tinkering with ideas for the past two days, and I have just started working. I used to do it in myeclipse, and recently I wanted to try another IDE, but when I used svn to check out the project into the idea, I always got an error. I don’t know what’s going on, and I can’t find the detailed process online. Please help me to answer the question. Thank you.
The following is a screenshot

Project structure

Error message

- Loading XML bean definitions from class path resource [spring/ApplicationContext-main.xml]
- Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [spring/ApplicationContext-main.xml]; nested exception is java.io.FileNotFoundException: class path resource [spring/ApplicationContext-main.xml] cannot be opened because it does not exist
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:344)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
    at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)

Sorry for the trouble, thank you

web.xml

某草草
某草草

reply all(2)
大家讲道理

The error message is that spring's ApplicationContext-main.xml configured in web.xml cannot be found.
Check whether the path of your web.xml configuration is wrong.


1. The path to the spring configuration file is an absolute path in my project.
2. The configuration file of spring-mvc was not found in idea. Probably not.

Maybe the idea is not configured properly. What I do here is to maintain two folders, src and web, on svn. The two paths are pursued separately.

某草草

Right-click on the resources folder-Mark Dictionary As-Resource root and try it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template