|
|
@ -24,14 +24,6 @@ public class Start extends JFinalConfig {
|
|
|
|
UndertowServer.create(Start.class, "undertow.properties").start();
|
|
|
|
UndertowServer.create(Start.class, "undertow.properties").start();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//在jfinal启动完成后马上执行
|
|
|
|
|
|
|
|
public void onStart() {
|
|
|
|
|
|
|
|
//打印 启动Logo
|
|
|
|
|
|
|
|
String path = Start.class.getClassLoader().getResource("Logo.txt").getPath();
|
|
|
|
|
|
|
|
File file = new File(path);
|
|
|
|
|
|
|
|
System.out.println(CommonUtil.txt2String(file));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 配置常量
|
|
|
|
* 配置常量
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -96,4 +88,11 @@ public class Start extends JFinalConfig {
|
|
|
|
public void configHandler(Handlers me) {
|
|
|
|
public void configHandler(Handlers me) {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void onStart() {
|
|
|
|
|
|
|
|
//打印 启动Logo
|
|
|
|
|
|
|
|
String path = Start.class.getClassLoader().getResource("Logo.txt").getPath();
|
|
|
|
|
|
|
|
File file = new File(path);
|
|
|
|
|
|
|
|
System.out.println(CommonUtil.txt2String(file));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|