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

未完待续。。。。

posted @ 2021-10-29 11:25  LoveMe7788  阅读(38)  评论(0编辑  收藏  举报