Home > Back-end >  According to the dynamic generation json string Bean
According to the dynamic generation json string Bean

Time:10-30

Project requirements is to put A mail content, according to the format of the C from B to C, C is A number of other company system, different manufacturers require format,
A=& gt; B=& gt; C

Demand is, the message format C (Json) define some documents, Json attribute and the attribute of A mapping relation, how to give A data transformation to C format data?

Now idea is, by definition template C (Json) string, converted to Bean, Json is A layer of A layer of nested, transformation from A lot of beans. A and C animal sign mapping relationship had, how the data assigned to these beans?

There are other good method to design?

CodePudding user response:

This design can also,
A new corresponding Bean, then set set each Bean field, and then converted to json to send,

CodePudding user response:

reference 1st floor qybao response:
this design can also,
A new corresponding Bean, then set set each Bean field, and then sent into json,

Bean is a template parsing dynamically created according to the news

CodePudding user response:

refer to the second floor pujitan978 response:
beans are analytical dynamically created based on message template

Didn't know what you mean
Get Bean is A message template parsing dynamically created, is direct send the Bean to C? Or convert the Bean to conform to the format of the C Bean transfer again?

CodePudding user response:

reference qybao reply: 3/f
Quote: refer to the second floor pujitan978 response:

Bean is analytical dynamically created based on message template

Didn't know what you mean
Get Bean is A message template parsing dynamically created, is direct send the Bean to C? Or convert the Bean to conform to the format of the C Bean transfer again?

Dynamically create Bean is C format, it is ok to have Bean directly turn Json,

CodePudding user response:

The
reference 4 floor pujitan978 reply:
format dynamically create Bean is C, it is ok to have Bean directly turn Json,

That's not all right? Now the question is?
  • Related