@Override
    public void onApplicationEvent(final WebServerInitializedEvent event) {
        int port = event.getWebServer().getPort();
        final String host = IpUtils.getHost();
        final String domain = System.getProperty("shenyu.httpPath");
        if (StringUtils.isBlank(domain)) {
            ShenyuDomain.getInstance().setHttpPath("http://" + String.join(":", host, String.valueOf(port)) + contextPath);
        } else {
            ShenyuDomain.getInstance().setHttpPath(domain);
        }
        
        shenyuRunningModeService.start(host, port, contextPath);
    }
@Test
    public void testOnApplicationEvent() {
        String host = IpUtils.getHost();
        String expectedPath = "http://" + String.join(":", host, String.valueOf(port));
        assertEquals(expectedPath, ShenyuDomain.getInstance().getHttpPath());
    }