# springBoot JPA代码生成器 **Repository Path**: LSZYAB/springboot-jpa-generator ## Basic Information - **Project Name**: springBoot JPA代码生成器 - **Description**: 通过IDEA+配置文件,快速生产Service、ServiceImpl、repository、repositoryImpl、自动生成常用的jpa增删改查等方法。 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 15 - **Created**: 2021-11-15 - **Last Updated**: 2021-11-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # springBoot JPA代码生成器 #### 介绍 通过IDEA+配置文件,快速生产Service、ServiceImpl、repository、repositoryImpl、自动生成常用的jpa增删改查等方法。 #### 使用的版本 Spring Boot2.1.6.RELEASE + spring-boot-starter-data-jpa #### 使用idea 生成代码步骤 1. 打开idea ![1](images/step1.png) 2. 连接数据 ![2](images/step2.png) 3. 配置groovy文件 ![3](images/step3.png) 4. 替换groovy文件为自己的groovy文件 ![4](images/step4.png) 配置文件内容替换我的: Generate POJOs.groovy 5.选择生成代码的表。 ![5](images/step5.png) 此时会让你选择要生成的保存目录。 6.生产的文件与包名 ![6](images/step6.png) 7.效果图 ![7](images/step7.png) #### 先前参考简书上的帖子,后经自己改良的配置生成。 大佬的帖子: Spring Boot JPA idea代码自动生成 其二 https://www.jianshu.com/p/523af440eaf6