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

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

This the file web.xml in WEB-INF





        
4条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-12 15:21

    I think you are missing the context loader listener(to pick your spring context file(s)).

    Add this to your web.xml

    
        org.springframework.web.context.ContextLoaderListener
    
    

    You could also check out the Initial web configuration section @ http://static.springsource.org/spring/docs/2.0.x/reference/beans.html

提交回复
热议问题