property not found with multiple context:property-placeholder

前端 未结 4 966
温柔的废话
温柔的废话 2020-12-16 05:17

I am using spring 3.1 with spring profiles to load the beans. In my app context file, I load the properties like :



        
4条回答
  •  抹茶落季
    2020-12-16 05:54

    Each creates a new instance of PropertyPlaceholderConfigurer - it gets messy easily. You should have one such thing per application and on application level, not on libraries' one - that makes maintenance much easier.

    For more details and a suggestion how to cope with it look here: http://rostislav-matl.blogspot.cz/2013/06/resolving-properties-with-spring.html

提交回复
热议问题