public static void main(String[] args) throws Exception {
// 设定Spring的profile
System.setProperty("spring.profiles.active", "production");
JettyServer jettyServer = new JettyServer(PORT, CONTEXT);
jettyServer.setTldJarNames(TLD_JAR_NAMES);
jettyServer.addOtherResources(KETA_CUSTOM_COMPONENT_RESOURCES);
jettyServer.addOtherClasses(KETA_CUSTOM_COMPONENT_CLASSES);
// 启动Jetty
try {
jettyServer.start();
System.out.println("启动成功,请使用该路径访问系统:" + BASE_URL);
System.out.println("在控制台输入'r'重新加载应用,输入'q'退出jetty程序!");
while (true) {
char c = (char) System.in.read();
if (c == 'r') {
jettyServer.reloadContext();
} else if (c == 'q') {
break;
}
}
} catch (Exception e) {