novicate opened a new issue, #4535:
URL: https://github.com/apache/rocketmq/issues/4535

   abstract static class BaseMQ<T> implements RocketMQListener<T> {
   }
   
   @RocketMQMessageListener(topic=xxx, consumerGroup=xxx)
   class Consumer extend BaseMQ<Entity> {
   }
   
   I'm going to use the BaseMQ class to provide template methods, but it throws 
exception:
   
   Caused by: java.lang.RuntimeException: parameterType:T of onMessage method 
is not supported
        at 
org.apache.rocketmq.spring.support.DefaultRocketMQListenerContainer.getMethodParameter(DefaultRocketMQListenerContainer.java:499)
        at 
org.apache.rocketmq.spring.support.DefaultRocketMQListenerContainer.afterPropertiesSet(DefaultRocketMQListenerContainer.java:319)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to