@@ -32,44 +32,51 @@ public static void main(String[] args) {
32
32
33
33
System .out .println ("\n \n \n \n \n <<<<<<<<<<<<<<<<<<<<<<<<< APIJSON 开始启动 >>>>>>>>>>>>>>>>>>>>>>>>\n " );
34
34
35
+ System .out .println ("\n \n \n 开始初始化:远程函数配置 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n " );
36
+ try {
37
+ DemoFunction .init (true );
38
+ }
39
+ catch (Exception e ) {
40
+ e .printStackTrace ();
41
+ }
42
+ System .out .println ("\n 完成初始化:远程函数配置 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" );
43
+
35
44
System .out .println ("开始测试:远程函数 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n " );
36
45
try {
37
46
DemoFunction .test ();
38
- } catch (Exception e ) {
47
+ }
48
+ catch (Exception e ) {
39
49
e .printStackTrace ();
40
50
}
41
51
System .out .println ("\n 完成测试:远程函数 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" );
42
52
53
+
54
+
55
+ System .out .println ("\n \n \n 开始初始化:请求校验配置 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n " );
56
+ try {
57
+ StructureUtil .init (true );
58
+ }
59
+ catch (Exception e ) {
60
+ e .printStackTrace ();
61
+ }
62
+ System .out .println ("\n 完成初始化:请求校验配置 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" );
43
63
44
64
System .out .println ("\n \n \n 开始测试:请求校验 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n " );
45
65
try {
46
66
StructureUtil .test ();
47
- } catch (Exception e ) {
67
+ }
68
+ catch (Exception e ) {
48
69
e .printStackTrace ();
49
70
}
50
71
System .out .println ("\n 完成测试:请求校验 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" );
51
72
52
73
53
- System .out .println ("\n \n \n 开始初始化:远程函数配置 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n " );
54
- try {
55
- DemoFunction .init (true );
56
- } catch (Exception e ) {
57
- e .printStackTrace ();
58
- }
59
- System .out .println ("\n 完成初始化:远程函数配置 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" );
60
74
61
- System .out .println ("\n \n \n 开始初始化:请求校验配置 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n " );
62
- try {
63
- StructureUtil .init (true );
64
- } catch (Exception e ) {
65
- e .printStackTrace ();
66
- }
67
- System .out .println ("\n 完成初始化:请求校验配置 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" );
68
-
69
75
System .out .println ("\n \n \n 开始初始化:权限校验配置 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n " );
70
76
try {
71
77
DemoVerifier .init (true );
72
- } catch (Exception e ) {
78
+ }
79
+ catch (Exception e ) {
73
80
e .printStackTrace ();
74
81
}
75
82
System .out .println ("\n 完成初始化:权限校验配置 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" );
@@ -78,6 +85,8 @@ public static void main(String[] args) {
78
85
System .out .println ("\n \n <<<<<<<<<<<<<<<<<<<<<<<<< APIJSON 启动完成,试试调用自动化 API 吧 ^_^ >>>>>>>>>>>>>>>>>>>>>>>>\n " );
79
86
}
80
87
88
+
89
+
81
90
public void configRoute (Routes me ) {
82
91
me .add ("/" , Controller .class );
83
92
}
0 commit comments