Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions

Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'messageListener' threw exception; nested exception is java.lang.IllegalArgumentException: Message listener needs to be of type [javax.jms.MessageListener] or [org.springframework.jms.listener.SessionAwareMessageListener]
    at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:121)
    at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:75)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1514)
    ... 40 more

 

出现这种bug提示说Property 'messageListener'不正常,这时候发现了下面配置写错啦

错误的配置



    





    
    
    
    
    
    
    

正确的配置



    





    
    
    
    
    
    

property里面都是ref才是正确的啊,写成value就错了

你可能感兴趣的:(exception)