class Motan2ServerWithMesh {

    public static void main(String[] args) throws InterruptedException {<FILL_FUNCTION_BODY>}
}

        //需要先部署mesh agent。可以参考https://github.com/weibocom/motan-go。agent配置中需要有匹配的注册中心配置
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext(new String[]{"classpath*:motan2_demo_server_mesh.xml"});
        MotanSwitcherUtil.setSwitcherValue(MotanConstants.REGISTRY_HEARTBEAT_SWITCHER, true);
        System.out.println("server start...");
    
<no_super_class>