spring boot 之 Mybatis 配置

############################## mybatis配置 ######################################
mybatis.configuration.call-setters-on-nulls=true

#entity扫描的包名
mybatis.type-aliases-package=mydemo.entity

#Mapper.xml所在的位置
mybatis.mapper-locations=classpath*:com/mydemo/mapper/*/*Mapper.xml
mapper.mappers=mydemo.common.dao.BaseMapper

#在控制台输出sql返回数据。
mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl

#控制台打印字段
logging.level.mydemo.mapper=TRACE

原文地址:https://www.cnblogs.com/jingyi17/p/10102921.html