PropertyPlaceholderConfigurer and environment variables in .properties files

后端 未结 3 1415
误落风尘
误落风尘 2020-12-25 15:28

I have a Spring application-context.xml with PropertyPlaceholderConfigurer to get properties\' values from .properties file. Main and test source folders have separate .prop

3条回答
  •  误落风尘
    2020-12-25 16:02

    I used benkiefer's approach, but I had to add a listener to web.xml:

    
       org.springframework.web.context.ContextLoaderListener
    
    

提交回复
热议问题