改为Dubbo Main启动方式

This commit is contained in:
shuzheng 2018-11-04 16:50:13 +08:00
parent 7f16a891b1
commit 320d85ee79
5 changed files with 5 additions and 45 deletions

View File

@ -1,20 +1,12 @@
package com.zheng.api.rpc;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* 服务启动类
* Created by shuzheng on 2017/2/19.
*/
public class ZhengApiRpcServiceApplication {
private static final Logger LOGGER = LoggerFactory.getLogger(ZhengApiRpcServiceApplication.class);
public static void main(String[] args) {
LOGGER.info(">>>>> zheng-api-rpc-service 正在启动 <<<<<");
new ClassPathXmlApplicationContext("classpath:META-INF/spring/*.xml");
LOGGER.info(">>>>> zheng-api-rpc-service 启动完成 <<<<<");
com.alibaba.dubbo.container.Main.main(args);
}
}

View File

@ -1,21 +1,13 @@
package com.zheng.cms.rpc;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* 服务启动类
* Created by ZhangShuzheng on 2017/2/3.
*/
public class ZhengCmsRpcServiceApplication {
private static final Logger LOGGER = LoggerFactory.getLogger(ZhengCmsRpcServiceApplication.class);
public static void main(String[] args) {
LOGGER.info(">>>>> zheng-cms-rpc-service 正在启动 <<<<<");
new ClassPathXmlApplicationContext("classpath:META-INF/spring/*.xml");
LOGGER.info(">>>>> zheng-cms-rpc-service 启动完成 <<<<<");
com.alibaba.dubbo.container.Main.main(args);
}
}

View File

@ -1,21 +1,13 @@
package com.zheng.pay.rpc;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* 服务启动类
* Created by ZhangShuzheng on 2017/3/29.
*/
public class ZhengPayRpcServiceApplication {
private static final Logger LOGGER = LoggerFactory.getLogger(ZhengPayRpcServiceApplication.class);
public static void main(String[] args) {
LOGGER.info(">>>>> zheng-pay-rpc-service 正在启动 <<<<<");
new ClassPathXmlApplicationContext("classpath:META-INF/spring/*.xml");
LOGGER.info(">>>>> zheng-pay-rpc-service 启动完成 <<<<<");
com.alibaba.dubbo.container.Main.main(args);
}
}

View File

@ -1,21 +1,13 @@
package com.zheng.ucenter.rpc;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* 服务启动类
* Created by ZhangShuzheng on 2017/6/19.
*/
public class ZhengUcenterRpcServiceApplication {
private static final Logger LOGGER = LoggerFactory.getLogger(ZhengUcenterRpcServiceApplication.class);
public static void main(String[] args) {
LOGGER.info(">>>>> zheng-ucenter-rpc-service 正在启动 <<<<<");
new ClassPathXmlApplicationContext("classpath:META-INF/spring/*.xml");
LOGGER.info(">>>>> zheng-ucenter-rpc-service 启动完成 <<<<<");
com.alibaba.dubbo.container.Main.main(args);
}
}

View File

@ -1,21 +1,13 @@
package com.zheng.upms.rpc;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* 服务启动类
* Created by ZhangShuzheng on 2017/2/3.
*/
public class ZhengUpmsRpcServiceApplication {
private static final Logger LOGGER = LoggerFactory.getLogger(ZhengUpmsRpcServiceApplication.class);
public static void main(String[] args) {
LOGGER.info(">>>>> zheng-upms-rpc-service 正在启动 <<<<<");
new ClassPathXmlApplicationContext("classpath:META-INF/spring/*.xml");
LOGGER.info(">>>>> zheng-upms-rpc-service 启动完成 <<<<<");
com.alibaba.dubbo.container.Main.main(args);
}
}