Notes of a mybatis

Write resultType in UserMapper.xml file = full-path "cn.smbms.dao.pojo.User" return type is not very long, but also more unsightly; not easy to post-maintenance projects.

Solution:

The first way: It is more recommended.

The second way: It is not recommended, because if a large project in time, a package the following classes will be more, so that each class configuration type alias, that would be exhausted.

 

Guess you like

Origin www.cnblogs.com/dongyaotou/p/11782203.html