今天自己在搭建项目的时候,抛出了如下异常。
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'activemq.connectionFactory' defined in class path resource [plus/dy-activemq.xml]: Could not resolve placeholder 'plus.activemq.connectionUrl.test'
但是 'plus.activemq.connectionUrl.test' 配置在配置文件中肯定存在,而且没有拼写错误。找了好久才发现,当项目需要写多个Placeholder的时候,一定要添加ignoreUnresolvablePlaceholders的属性为true
如:
<bean class="com.dooioo.mq.monitor.common.AppPropertyConfigurer">
<property name="ignoreUnresolvablePlaceholders" value="true" />
</bean>
添加之后就可以成功运行了
分享到:
相关推荐
PropertyPlaceholderConfigurerDemo.rar 基于Spring2.0 Property Placeholder配置的源码例子
简洁的placeholder插件,支持ie9、ie8及以下版本。完美解决ie9中onpropertychange问题。使用简单,引入placeholder.js即可让您的ie完美支持placeholder
基于jquery编写的支持所有浏览器的placeholder 示例: <input type="text" data-placeholder="请输入用户名"/>
自定义input的placeholder属性为pro,细节自己看源码,源码不多,容易理解
在不支持的浏览器时可以使用jquery的placeholder插件实现。 使用方法: $.Placeholder.init(); // default setting $.Placeholder.init({ color : 'rgb(255, 255, 0)' }); // custom placeholder text color 更多使用...
self.bottomTextView.placeholder = @"textView增加placeholder以及设置颜色,自动适应键 盘展开和收起。"; //设置placeholder self.bottomTextView.placeholderColor = [UIColor purpleColor]; //设置...
解决input 中placeholder的那些神坑-附件资源
This is an example of a PlaceHolder in asp.net
完美兼容H5 placeholder属性在IE9及以下版本的问题 自测可用,修改点少
现在流行html5了都,所有的浏览器都支持placeholder,唯独IE不支持,那么这插件将完美解决IE浏览器不兼容input标签的placeholder属性.
jquery 代码解决placeholder不换行,不居中问题
Placeholder,初始提交.zip
基于jQuery的placeholder组件,支持IE8及以下
这是一个关于兼容input下placeholder的属性的方法,通过js来用另外一中方法来实现