改为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; 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. * Created by shuzheng on 2017/2/19.
*/ */
public class ZhengApiRpcServiceApplication { public class ZhengApiRpcServiceApplication {
private static final Logger LOGGER = LoggerFactory.getLogger(ZhengApiRpcServiceApplication.class);
public static void main(String[] args) { public static void main(String[] args) {
LOGGER.info(">>>>> zheng-api-rpc-service 正在启动 <<<<<"); com.alibaba.dubbo.container.Main.main(args);
new ClassPathXmlApplicationContext("classpath:META-INF/spring/*.xml");
LOGGER.info(">>>>> zheng-api-rpc-service 启动完成 <<<<<");
} }
} }

View File

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

View File

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

View File

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

View File

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