Mybatis gets the data as null (annotation method)

When using muybatis to get the date data of mysql, one of the data is always empty, while the other data in the same entity can be obtained normally.

This situation is likely to be the reason why the data in mysql and java entity class data fail to map. When using annotation development, the attributes in the entity class data must be consistent with the attribute names in mysql (unless you configure the mapping conversion). Ignore case.

The problem this time is that one of the attributes is missing a letter, which causes it to not match with mysql.

Guess you like

Origin blog.csdn.net/qq_34902437/article/details/105041210