Could not open ServletContext resource [/WEB-INF/applicationContext.xml]

前端 未结 2 480
清酒与你
清酒与你 2020-12-03 02:27

Ok, I am 500th user asking this question, I read many answers but still having no luck.

parent module pom contains:


    

        
2条回答
  •  渐次进展
    2020-12-03 03:10

    Update: This will create a second context same as in applicationContext.xml

    or you can add this code snippet to your web.xml

    
        spring-dispatcher
        org.springframework.web.servlet.DispatcherServlet
            
              contextConfigLocation
              classpath:applicationContext.xml
            
        1
    
    

    instead of

    
        dispatcher
        org.springframework.web.servlet.DispatcherServlet
        1
    
    

提交回复
热议问题