tk.mybatis使用总结
一:添加依赖
二::编写mybatis-generator.xml 生成mapper、xml、entity
三:配置扫描xml文件
四:运用tk.mybatis的mapperscan注解扫描mapper文件(要注意)
详细地址:spring boot mybatis-generator 使用tk.mybatis.mapper通用mapper自动生成代码
控制台打印mapper产生的sql:修改application.properties
logging.level.com.hw.dao=debug
#com.hw.dao是你的dao层的包路径