# izliang-autocode **Repository Path**: rxzhuang/izliang-autocode ## Basic Information - **Project Name**: izliang-autocode - **Description**: 基于springboot的自动代码生成工具,使用ORM使用SpringData-JPA,数据库使用MySQL,基于liubingxu18为基础开发的自动代码生成器,有更多新的功能。 - **Primary Language**: Java - **License**: BSD-3-Clause-Clear - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-03-22 - **Last Updated**: 2024-06-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # izliang-autocode #### 介绍 基于springboot的自动代码生成工具,ORM使用SpringData-JPA,数据库支持MySQL和oracle,基于liubingxu18为基础开发的自动代码生成器,有更多新的功能。 #### 软件架构 软件架构说明 crud 方便使用hibernate hql sql语句,支持参数传递 代码生成 根据表生成代码 #### 安装教程 spring boot 引入 org.springframework.boot spring-boot-starter-parent 2.1.1.RELEASE com.github.liubingxu18 spring-data-jpawapper 1.0.8 application.yml 引入 spring: jpa: show-sql: true database: mysql generate-ddl: true hibernate: ddl-auto: update datasource: url: jdbc:mysql://localhost:3306/dataBaseName?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=UTC username: root password: pwd type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.cj.jdbc.Driver code-create: #需要生成代码的数据库 database-name: toolkit #生成bean的包 bean-package: com.liubx.bean #生成service的包 service-package: com.liubx.web.service #生成serviceImpl的包 service-impl-package: com.liubx.web.service.impl #生成repository的包 repository-package: com.liubx.web.repoDsitory #生成controller的包 controller-package: com.liubx.web.controller #是否生成代码 enable: true #数据库类型 mysql或者oracle database-type: mysql 主函数引入注解 @ComponentScan(basePackages = {"jpa.autocode", "you code package"}) @EnableJpaRepositories(repositoryFactoryBeanClass = BaseRepositoryFactoryBean.class) 代码生成 访问localhost:8080/code.html 在这里插入图片描述 #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 码云特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)