Skip to content

Commit e71aa0d

Browse files
authored
Merge pull request #105 from moshowgame/v3.0
V3.0 Version Upgrade
2 parents 81d6415 + a10a330 commit e71aa0d

File tree

117 files changed

+8380
-1111
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+8380
-1111
lines changed

README.md

Lines changed: 116 additions & 73 deletions
Large diffs are not rendered by default.

codegenerator1.png

-31.1 KB
Loading

codegenerator2.png

-3.06 KB
Loading

codegenerator3.png

-121 KB
Binary file not shown.

codegenerator4.png

-143 KB
Binary file not shown.
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
package com.softdev.system.generator;
22

3-
import lombok.extern.slf4j.Slf4j;
43
import org.springframework.boot.SpringApplication;
54
import org.springframework.boot.autoconfigure.SpringBootApplication;
65

6+
/**
7+
* @author zhengkai.blog.csdn.net
8+
*/
79
@SpringBootApplication
8-
public class GeneratorWebApplication {
10+
public class Application {
911

1012
public static void main(String[] args) {
11-
SpringApplication.run(GeneratorWebApplication.class, args);
13+
SpringApplication.run(Application.class, args);
1214
}
1315

1416
}

generator-web/src/main/java/com/softdev/system/generator/config/GlobalDefaultExceptionHandler.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,17 @@
77

88
import javax.servlet.http.HttpServletRequest;
99

10+
/**
11+
* @author zhengkai.blog.csdn.net
12+
*/
1013
@ControllerAdvice
1114
public class GlobalDefaultExceptionHandler {
1215

1316
@ExceptionHandler(Exception.class)
1417
@ResponseBody
1518
public ReturnT defaultExceptionHandler(HttpServletRequest req, Exception e) {
1619
e.printStackTrace();
17-
return ReturnT.ERROR(e.getMessage());
20+
return ReturnT.error("代码生成失败:"+e.getMessage());
1821
}
1922

2023
}

0 commit comments

Comments
 (0)