SpringBoot 使用MyBatis

application.properties配置如下:
#mybatis
# 注意:一定要对应mapper映射xml文件的所在路径
mybatis.mapper-locations=classpath:mysqlmapper/*.xml
# 注意:对应实体类的路径
mybatis.type-aliases-package=com.tfy.mysql.domain
#输出sql语句
mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl

未完待续。。。。

小人才疏学浅,看官不喜勿喷,谢谢
原文地址:https://www.cnblogs.com/feiqilai/p/15479565.html