Problems in resulttype and resultmap in mybatis

The member variables in the bean used in resulttype   must be the same as the column names in the database, otherwise the value will not be obtained.

The member variables in the bean in the resultmap do not need to be the same, just set the following in the resultmap property defined by yourself:



Guess you like

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