How to convert the pairs (sets) found from the database into the form of attributes.



 How to convert it into a **
 solution: rewrite the toString() method, but first of all, in addition to the (set, get method), you must also give him "" as shown in the figure below!



 toString() this method. It can be achieved.

 .It can be converted into the form of "Uslogin [id=1, password=1234, username=admin]".

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326242173&siteId=291194637