From da1b5bbb858b8416bf00419dec82cfd3369a80cd Mon Sep 17 00:00:00 2001 From: TommyLemon <1184482681@qq.com> Date: Mon, 16 Sep 2019 00:00:04 +0800 Subject: [PATCH] =?UTF-8?q?Server:=20=E5=90=8C=E6=AD=A5=20APIJSONBoot=20?= =?UTF-8?q?=E7=9A=84=20Application=20=E4=BB=A3=E7=A0=81=E5=88=B0=20APIJSON?= =?UTF-8?q?Final?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../demo/server/AppRunnableConfig.java | 45 +++++++++++-------- 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/APIJSON-Java-Server/APIJSONFinal/src/main/java/apijson/demo/server/AppRunnableConfig.java b/APIJSON-Java-Server/APIJSONFinal/src/main/java/apijson/demo/server/AppRunnableConfig.java index 3ab4a683e..6b84dd83b 100755 --- a/APIJSON-Java-Server/APIJSONFinal/src/main/java/apijson/demo/server/AppRunnableConfig.java +++ b/APIJSON-Java-Server/APIJSONFinal/src/main/java/apijson/demo/server/AppRunnableConfig.java @@ -32,44 +32,51 @@ public static void main(String[] args) { System.out.println("\n\n\n\n\n<<<<<<<<<<<<<<<<<<<<<<<<< APIJSON 开始启动 >>>>>>>>>>>>>>>>>>>>>>>>\n"); + System.out.println("\n\n\n开始初始化:远程函数配置 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"); + try { + DemoFunction.init(true); + } + catch (Exception e) { + e.printStackTrace(); + } + System.out.println("\n完成初始化:远程函数配置 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); + System.out.println("开始测试:远程函数 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"); try { DemoFunction.test(); - } catch (Exception e) { + } + catch (Exception e) { e.printStackTrace(); } System.out.println("\n完成测试:远程函数 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); + + + System.out.println("\n\n\n开始初始化:请求校验配置 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"); + try { + StructureUtil.init(true); + } + catch (Exception e) { + e.printStackTrace(); + } + System.out.println("\n完成初始化:请求校验配置 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); System.out.println("\n\n\n开始测试:请求校验 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"); try { StructureUtil.test(); - } catch (Exception e) { + } + catch (Exception e) { e.printStackTrace(); } System.out.println("\n完成测试:请求校验 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); - System.out.println("\n\n\n开始初始化:远程函数配置 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"); - try { - DemoFunction.init(true); - } catch (Exception e) { - e.printStackTrace(); - } - System.out.println("\n完成初始化:远程函数配置 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); - System.out.println("\n\n\n开始初始化:请求校验配置 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"); - try { - StructureUtil.init(true); - } catch (Exception e) { - e.printStackTrace(); - } - System.out.println("\n完成初始化:请求校验配置 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); - System.out.println("\n\n\n开始初始化:权限校验配置 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"); try { DemoVerifier.init(true); - } catch (Exception e) { + } + catch (Exception e) { e.printStackTrace(); } System.out.println("\n完成初始化:权限校验配置 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); @@ -78,6 +85,8 @@ public static void main(String[] args) { System.out.println("\n\n<<<<<<<<<<<<<<<<<<<<<<<<< APIJSON 启动完成,试试调用自动化 API 吧 ^_^ >>>>>>>>>>>>>>>>>>>>>>>>\n"); } + + public void configRoute(Routes me) { me.add("/", Controller.class); }