Skip to content
189 changes: 116 additions & 73 deletions README.md

Large diffs are not rendered by default.

Binary file modified codegenerator1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified codegenerator2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed codegenerator3.png
Binary file not shown.
Binary file removed codegenerator4.png
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
package com.softdev.system.generator;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
* @author zhengkai.blog.csdn.net
*/
@SpringBootApplication
public class GeneratorWebApplication {
public class Application {

public static void main(String[] args) {
SpringApplication.run(GeneratorWebApplication.class, args);
SpringApplication.run(Application.class, args);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@

import javax.servlet.http.HttpServletRequest;

/**
* @author zhengkai.blog.csdn.net
*/
@ControllerAdvice
public class GlobalDefaultExceptionHandler {

@ExceptionHandler(Exception.class)
@ResponseBody
public ReturnT defaultExceptionHandler(HttpServletRequest req, Exception e) {
e.printStackTrace();
return ReturnT.ERROR(e.getMessage());
return ReturnT.error("代码生成失败:"+e.getMessage());
}

}
Loading