-
-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何对同一个指令,同一个协议版本,用多个@Jt808RequestHandlerMapping注解的方法处理 #83
Comments
@Jt808RequestHandlerMapping(msgType = 0x0200, versions = AUTO_DETECTION, desc = "位置信息上报(苏标)") } @Jt808RequestHandlerMapping(msgType = 0x0200, versions = AUTO_DETECTION, desc = "位置信息上报(粤标)") } |
这个应该做不到。 据我所知,好像只能在解析消息体之后,通过消息附加项判断。比如苏标消息附加项中可能会出现(也可能不出现) 附加项 可以参考示例项目中的写法: LocationMsgService.java#L57 |
或许可以用自定义的生命周期监听器来实现? |
目前 但是,仅仅通过消息头的 如果你想干预消息处理器的分发逻辑 或 你想自定义消息处理器(比如实现自己的消息处理器注解) 的话,可以参考下面几个组件:
前提是: 在仅仅知道 |
比如0x0200指令,针对苏标和粤标采用不同的方法去处理,可以做到解析2013苏标、2019苏标、2013粤标和2019粤标
The text was updated successfully, but these errors were encountered: