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

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

Here is part of my web.xml:


        contextConfigLocation
        
            clas         


        
2条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-04 22:31

    Totally agree with axtavt. So all the info combined the most simple solution with Spring 3.0 thus is:

    
    

    with

    
       propertiesLocation
       classpath:properties/db.properties
    
    

    in web.xml.

提交回复
热议问题