我关注"I coding blog"这对于像我这样想要进入Spring,JMS和ActiveMQ的人来说非常好。
当我将TestJMSListener作为java应用程序运行时,我收到以下错误:
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connectionFactory' defined in class path resource [com/jms/helloworld/config/JMSConfig.xml]: Error setting property values;
nested exception is org.springframework.beans.NotWritablePropertyException:
Invalid property 'brokerurl' of bean class [org.apache.activemq.ActiveMQConnectionFactory]:
Bean property 'brokerurl' is not writable or has an invalid setter method.
Does the parameter type of the setter match the return type of the getter?
我不知道如何修复它,下面是我的JMSConfig.xml文件:
your xml file here.