For detailed answers code to output element content
CodePudding user response:
You need in your entity class (Light) rewrite the toString method, can print object values,
CodePudding user response:
1, rewrite the toString ();
2, the iteration, conversion and output properties for the object
CodePudding user response:
The tostring
CodePudding user response: