Skip to content

Commit 7edeea0

Browse files
committed
log.info优化/pom version update
1 parent 7a4ee45 commit 7edeea0

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

generator-web/pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
<parent>
88
<groupId>com.softdev.system</groupId>
99
<artifactId>SpringBootCodeGenerator</artifactId>
10-
<version>2.0</version>
10+
<version>3.0</version>
1111
</parent>
12-
13-
<groupId>com.softdev.system</groupId>
12+
1413
<artifactId>generator-web</artifactId>
1514
<version>2.0</version>
1615
<packaging>jar</packaging>

generator-web/src/main/java/com/softdev/system/generator/controller/GeneratorController.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.softdev.system.generator.controller;
22

3-
import com.alibaba.fastjson.JSON;
43
import com.softdev.system.generator.entity.ClassInfo;
54
import com.softdev.system.generator.entity.ParamInfo;
65
import com.softdev.system.generator.entity.ReturnT;
@@ -15,6 +14,7 @@
1514
import org.springframework.web.bind.annotation.*;
1615
import org.springframework.web.servlet.ModelAndView;
1716

17+
import java.util.Date;
1818
import java.util.Map;
1919

2020
/**
@@ -52,8 +52,7 @@ public ReturnT getAllTemplates() throws Exception {
5252
@PostMapping("/code/generate")
5353
@ResponseBody
5454
public ReturnT generateCode(@RequestBody ParamInfo paramInfo) throws Exception {
55-
56-
log.info(JSON.toJSONString(paramInfo));
55+
//log.info(JSON.toJSONString(paramInfo.getOptions()));
5756
if (StringUtils.isEmpty(paramInfo.getTableSql())) {
5857
return ReturnT.error("表结构信息为空");
5958
}
@@ -85,7 +84,7 @@ public ReturnT generateCode(@RequestBody ParamInfo paramInfo) throws Exception {
8584

8685
//3.generate the code by freemarker templates with parameters . Freemarker根据参数和模板生成代码
8786
Map<String, String> result = generatorService.getResultByParams(paramInfo.getOptions());
88-
87+
log.info("table:{} - time:{} ", MapUtil.getString(result,"tableName"),new Date());
8988
return ReturnT.ok().put("outputJson",result);
9089
}
9190

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>com.softdev.system</groupId>
77
<artifactId>SpringBootCodeGenerator</artifactId>
8-
<version>2.0</version>
8+
<version>3.0</version>
99
<packaging>pom</packaging>
1010

1111
<parent>

0 commit comments

Comments
 (0)