SpringBoot 集成 MyBatis Generator
MyBatis Generator(简称MBG)是MyBatis官方提供的代码生成工具。可以通过数据库表直接生成实体类、单表CRUD代码、mapper.xml文件,从而解放我们的双手!# 数据源配置spring:# MyBatis mapper.xml路径配置mybatis:/*** @description MyBatis配置类*//*** @description 用于生产MBG的代码*///MBG 执行过程中的警告信息//当生成的代码重复时,覆盖原代码。
原创
2024-04-26 22:10:58 ·
683 阅读 ·
0 评论