Home > Back-end >  Springboot contain attributes at the front desk
Springboot contain attributes at the front desk

Time:03-13

My desk is a triple array
The background how to write the entity attributes of a class to receive the object, and bosses give directions


This is the background controller


This is the background entity class

CodePudding user response:

Entity class if define a three dimensional array initialization feel there will be a problem, the feeling will be submitted to the many null pointer exception

CodePudding user response:

Or don't change the entity classes, I can directly receive similar String [] [] [] parameters

CodePudding user response:

Use json to pick up, find a plugin or hand rolled type

CodePudding user response:

It is not definitely Map To transfer to what what is strong

CodePudding user response:

This is a JSONArray format strings, let the front just preach string
The background with: JSONArray array=JSONArray. FromObject (" [{}, {}] ");
JSONArray also implements the Java. Util.
the List interface
Thinking is such
  • Related