Commit ff8c24dc authored by fangxinjiang's avatar fangxinjiang

全局异常处理

parent 9a76ea4c
...@@ -55,9 +55,6 @@ public class GeneratorController { ...@@ -55,9 +55,6 @@ public class GeneratorController {
*/ */
@GetMapping("/page") @GetMapping("/page")
public R<IPage<List<Map<String, Object>>>> getPage(Page page, String tableName, String dsName) { public R<IPage<List<Map<String, Object>>>> getPage(Page page, String tableName, String dsName) {
if (1==1){
throw new RuntimeException("teskdjfaskldfjklsajfdls");
}
return R.ok(generatorService.getPage(page, tableName, dsName)); return R.ok(generatorService.getPage(page, tableName, dsName));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment