对于default模式,可以配置http,hppts两种连接,可以通过colone的方式,对齐进行复制,并修改连接工厂的端口,但是不要设置virtualhost,
public void run(final ItmUafAppConfig appConfig, final Environment environment) throws Exception {
final long start = System.currentTimeMillis();
ItmUafApp.log.info("[service start] Initialize uaf begin. start={}", (Object)start);
environment.jersey().packages(new String[] { "com.zte.ums.zenap.itm.uaf.resources" });
this.setBindHost(appConfig, environment);
-----------------------
不要增加此行代码,如果需要增加,需要对连接工厂的name进行重置,与Handler关联起来。
environment.getApplicationContext().setVirtualHosts(ips);