//实体类中的变量名 private String userDesc; //列的名称 user_desc 问题: 该列有数据,但读取一直为null 原因: MyBatis没有配置带下划线命名的字段自动转换驼峰命名 解决方法: //在application.yam中配置 mybatis: configuration: map-underscore-to-camel-case: true