Adding ContextLoaderListener to web.xml in Spring MVC

后端 未结 4 600
执笔经年
执笔经年 2020-12-01 06:39

I am new to Spring MVC. I have a web application. I have the following configuration:



        
4条回答
  •  -上瘾入骨i
    2020-12-01 07:21

    Yes you need to add ContextLoaderListener in web.xml, only if you want to load other Spring context xml files as well while loading the app and you can specify them as

    
        contextConfigLocation
        
            /WEB-INF/spring-security.xml
        
    
    

提交回复
热议问题