search

Home  >  Q&A  >  body text

java - IDEA checks out the project from SVN and runs it on tomcat. Please provide detailed process

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

某草草某草草2713 days ago1390

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-06-23 09:15:03

    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.

    reply
    0
  • 某草草

    某草草2017-06-23 09:15:03

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

    reply
    0
  • Cancelreply