# generator **Repository Path**: shenqidebaize/generator ## Basic Information - **Project Name**: generator - **Description**: 代码生成器 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-03-28 - **Last Updated**: 2022-05-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
一个简易的 springboot+jpa 常用代码生成器 包含Controller,Entity,Repository,Service 生成的目录结构为:
java
|——com
|——ckkg
|——test
|——base
|——domain
|——实体类
|——repository
|——repository类
|——<类名>
|——rest
|——controller类
|——service
|——service类
|——<类名>
…
使用springboot + mybatisplus框架
整合了apache的velocity作为模板生成工具
整合了thymeleaf页面显示
导入idea,在application.yaml中配置好连接参数后启动
默认端口号9030
resources->template下的vm文件可以修改模板
1、在application.yaml中配置好数据库连接参数
2、在generator.prperties中配置package,author,mainPath