You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "xuziyang (via GitHub)" <gi...@apache.org> on 2023/08/16 07:06:46 UTC
[GitHub] [rocketmq-spring] xuziyang opened a new issue, #581: Bug DefaultRocketMQListenerContainer类处理泛型时,存在问题
xuziyang opened a new issue, #581:
URL: https://github.com/apache/rocketmq-spring/issues/581
声明一个抽象类EnhanceMessageHandler实现RocketMQListener接口
abstract class EnhanceMessageHandler<T extends BaseMessage> implements RocketMQListener<T>{}
声明一个类实现MchApplymentConsumer extends EnhanceMessageHandler<MchApplymentMessage>实现抽象类EnhanceMessageHandler
DefaultRocketMQListenerContainer的getMessageType返回的Type类型为T
--
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: commits-unsubscribe@rocketmq.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-spring] xuziyang commented on issue #581: Bug DefaultRocketMQListenerContainer类处理泛型时,存在问题
Posted by "xuziyang (via GitHub)" <gi...@apache.org>.
xuziyang commented on issue #581:
URL: https://github.com/apache/rocketmq-spring/issues/581#issuecomment-1738287379
> ```java
> public abstract class MessageHandler<T> implements RocketMQListener<MessageExt> {
> @Override
> public void onMessage(MessageExt messageExt) {
> // 重写消费逻辑
> }
> }
> ```
你试过了吗,这样可以用?
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-spring] 987472953 commented on issue #581: Bug DefaultRocketMQListenerContainer类处理泛型时,存在问题
Posted by "987472953 (via GitHub)" <gi...@apache.org>.
987472953 commented on issue #581:
URL: https://github.com/apache/rocketmq-spring/issues/581#issuecomment-1735316424
可以继承RocketMQListener\<MessageExt\>
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Bug DefaultRocketMQListenerContainer类处理泛型时,存在问题 [rocketmq-spring]
Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #581:
URL: https://github.com/apache/rocketmq-spring/issues/581#issuecomment-5667073236
**Issue Evaluation**
Category: `bug` | Status: **Under Review**
This issue has been identified as a potential bug. It will be analyzed against the codebase to verify the reported behavior.
If you have additional information (version, reproduction steps, logs), please share it to help speed up the verification.
---
*Automated evaluation by github-manager-bot*
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-spring] 987472953 commented on issue #581: Bug DefaultRocketMQListenerContainer类处理泛型时,存在问题
Posted by "987472953 (via GitHub)" <gi...@apache.org>.
987472953 commented on issue #581:
URL: https://github.com/apache/rocketmq-spring/issues/581#issuecomment-1736902484
public abstract class MessageHandler<T> implements RocketMQListener<MessageExt> {
@Override
public void onMessage(MessageExt messageExt) {
// 重写消费逻辑
}
}
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-spring] xuziyang commented on issue #581: Bug DefaultRocketMQListenerContainer类处理泛型时,存在问题
Posted by "xuziyang (via GitHub)" <gi...@apache.org>.
xuziyang commented on issue #581:
URL: https://github.com/apache/rocketmq-spring/issues/581#issuecomment-1736851949
> 可以继承RocketMQListener<MessageExt>
我们现在要在RocketMQListener基础上在封装一个抽象基础类
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org