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 2
2
3
3
> 参考:[ https://github.com/lihengming/spring-boot-api-project-seed ] ( https://github.com/lihengming/spring-boot-api-project-seed )
4
4
5
+ ### 项目相关
6
+
7
+ * JavaDoc:[ https://apidoc.gitee.com/wang926454/SpringBootGenerator ] ( https://apidoc.gitee.com/wang926454/SpringBootGenerator )
8
+
5
9
#### 项目介绍
6
10
7
11
SpringBootGenerator是一个基于SpringBoot & MyBatis的种子项目,用于快速构建中小型API、RESTful API项目,稳定、简单、快速,使我们摆脱那些重复劳动,专注于业务代码的编写,能在短短几十秒钟内实现一套简单的API(自动生成Model、Mapper、MapperXML、Service、ServiceImpl、Controller基础代码),并运行提供服务
@@ -30,6 +34,7 @@ SpringBoot + Mybatis + PageHelper + 通用Mapper
30
34
#### 使用说明
31
35
32
36
1 . 可以自行修改src\test\resources\template下的模板
37
+ 2 . 修改src\test\java\com\example\generator\CodeGenerator.java下的CONTROLLER_TYPE可以生成REST或者POST的Controller模板
33
38
34
39
#### 参与贡献
35
40
Original file line number Diff line number Diff line change 145
145
<encoding >${project.build.sourceEncoding} </encoding >
146
146
</configuration >
147
147
</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 >
148
154
</plugins >
149
155
</build >
150
156
Original file line number Diff line number Diff line change 3
3
import org .springframework .boot .SpringApplication ;
4
4
import org .springframework .boot .autoconfigure .SpringBootApplication ;
5
5
6
+ /**
7
+ *
8
+ * @author Wang926454
9
+ * @date 2018/11/16 19:29
10
+ */
6
11
@ SpringBootApplication
7
12
@ tk .mybatis .spring .annotation .MapperScan ("com.example.mapper" )
8
13
public class Application {
9
-
10
14
public static void main (String [] args ) {
11
15
SpringApplication .run (Application .class , args );
12
16
}
Original file line number Diff line number Diff line change 18
18
*/
19
19
public class CodeGenerator {
20
20
// Controller生成类型 REST POST
21
- private static final String CONTROLLER_TYPE = "POST " ;
21
+ private static final String CONTROLLER_TYPE = "REST " ;
22
22
23
23
// JDBC配置
24
24
private static final String JDBC_URL = "jdbc:mysql://localhost:3306/dev" ;
You can’t perform that action at this time.
0 commit comments