property not found with multiple context:property-placeholder

前端 未结 4 977
温柔的废话
温柔的废话 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:40

    In my application I am using property-placeholder configurer in following way and it works very well. You can try that.

    
              
                
                    classpath*:META-INF/spring/*_${spring.profiles.active}.properties
                
              
        
    

    I think this should resolve your problem. :)

提交回复
热议问题