Message annotation configuration method, packaging method and analysis method

The invention relates to a message annotation configuration method, a packing method and an analysis method. Comprising the following steps: marking a message annotation on an attribute of a target entity class Javaban corresponding to a to-be-annotated message type to realize configuration of the m...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: HUANG QIXIONG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention relates to a message annotation configuration method, a packing method and an analysis method. Comprising the following steps: marking a message annotation on an attribute of a target entity class Javaban corresponding to a to-be-annotated message type to realize configuration of the message annotation; wherein the message annotation comprises a message front length annotation, a message header annotation and an application data annotation. By adopting the scheme, the analysis/coding rule does not need to be configured by independently using an xml file, and other files do not need to be independently used for configuration; and the configuration of the analysis/coding rule can be realized without separating from a programming source code, so that the development efficiency can be improved to a certain extent. 本申请涉及一种报文注解配置方法、组包方法及解析方法。包括将报文注解标注于待注解报文类型对应的目标实体类Javabean的属性上,实现对报文注解的配置;其中报文注解包括报文前置长度注解、报文头header注解以及应用数据注解。采用本方案无需单独使用xml文件来配置解析/编码规则,也无需单独使用其他文件来配置;也可无需脱离编程源码,即可实现解析/编码规则的配置,因此可在一定程度