Is it possible to use .properties files in web.xml in conjunction with contextConfigLocation parameter?

前端 未结 2 748
陌清茗
陌清茗 2021-02-04 22:08

Here is part of my web.xml:


        contextConfigLocation
        
            clas         


        
2条回答
  •  广开言路
    2021-02-04 22:33

    Yes, you can use ServletContextParameterFactoryBean to expose context-param value (it also requires full form of PropertyPlaceholderConfigurer instead of simple context:property-placeholder):

    
        
    
    
    
        
    
    

    Or use Spring 3.0's EL:

    
        
    
    

提交回复
热议问题