springboot整合mybatis后写在application.yaml配置文件中
mybatis:
configuration:
map-underscore-to-camel-case: true
开始使用驼峰命名规则,也就是你的数据使用字段是material_type可以和实体里中的materialType形成映射关系
如果不开启驼峰命名规则,必须使用resultMap来手动建立映射关系
原文链接:https://www.cnblogs.com/gavincoder/p/10140562.html