File tree Expand file tree Collapse file tree 4 files changed +17
-2
lines changed
test/java/com/example/generator Expand file tree Collapse file tree 4 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 22
33> 参考:[ https://github.com/lihengming/spring-boot-api-project-seed ] ( https://github.com/lihengming/spring-boot-api-project-seed )
44
5+ ### 项目相关
6+
7+ * JavaDoc:[ https://apidoc.gitee.com/wang926454/SpringBootGenerator ] ( https://apidoc.gitee.com/wang926454/SpringBootGenerator )
8+
59#### 项目介绍
610
711SpringBootGenerator是一个基于SpringBoot & MyBatis的种子项目,用于快速构建中小型API、RESTful API项目,稳定、简单、快速,使我们摆脱那些重复劳动,专注于业务代码的编写,能在短短几十秒钟内实现一套简单的API(自动生成Model、Mapper、MapperXML、Service、ServiceImpl、Controller基础代码),并运行提供服务
@@ -30,6 +34,7 @@ SpringBoot + Mybatis + PageHelper + 通用Mapper
3034#### 使用说明
3135
32361 . 可以自行修改src\test\resources\template下的模板
37+ 2 . 修改src\test\java\com\example\generator\CodeGenerator.java下的CONTROLLER_TYPE可以生成REST或者POST的Controller模板
3338
3439#### 参与贡献
3540
Original file line number Diff line number Diff line change 145145 <encoding >${project.build.sourceEncoding} </encoding >
146146 </configuration >
147147 </plugin >
148+ <!-- JavaDoc -->
149+ <plugin >
150+ <groupId >org.apache.maven.plugins</groupId >
151+ <artifactId >maven-javadoc-plugin</artifactId >
152+ <version >3.0.0</version >
153+ </plugin >
148154 </plugins >
149155 </build >
150156
Original file line number Diff line number Diff line change 33import org .springframework .boot .SpringApplication ;
44import org .springframework .boot .autoconfigure .SpringBootApplication ;
55
6+ /**
7+ *
8+ * @author Wang926454
9+ * @date 2018/11/16 19:29
10+ */
611@ SpringBootApplication
712@ tk .mybatis .spring .annotation .MapperScan ("com.example.mapper" )
813public class Application {
9-
1014 public static void main (String [] args ) {
1115 SpringApplication .run (Application .class , args );
1216 }
Original file line number Diff line number Diff line change 1818 */
1919public class CodeGenerator {
2020 // Controller生成类型 REST POST
21- private static final String CONTROLLER_TYPE = "POST " ;
21+ private static final String CONTROLLER_TYPE = "REST " ;
2222
2323 // JDBC配置
2424 private static final String JDBC_URL = "jdbc:mysql://localhost:3306/dev" ;
You can’t perform that action at this time.
0 commit comments