property not found with multiple context:property-placeholder

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

    Since you have suggested hardcoding the path to the configuration file works, try using the profiles attribute on the tag to selectively include the configuration.

    
        
    
    
        
        
    
    

    See this article explaining profiles: http://java.dzone.com/articles/using-spring-profiles-xml

提交回复
热议问题