java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?

前端 未结 4 1722
野趣味
野趣味 2021-02-12 14:50

This the file web.xml in WEB-INF





        
4条回答
  •  孤街浪徒
    2021-02-12 15:37

    Add following code in web.xml file, bcs it looks for contex to load so we have to declare it initially.

        
            contextConfigLocation
            /WEB-INF/HelloWeb-servlet.xml
        
    
        
        org.springframework.web.context.ContextLoaderListener
        
    

提交回复
热议问题