Преглед изворни кода

rpc-service#main启动增加日志

shuzheng пре 9 година
родитељ
комит
ea673b8dbb

+ 6 - 0
zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/rpc/service/ZhengCmsRpcServiceApplication.java

@@ -1,5 +1,7 @@
 package com.zheng.cms.rpc.service;
 package com.zheng.cms.rpc.service;
 
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 import org.springframework.context.support.ClassPathXmlApplicationContext;
 import org.springframework.context.support.ClassPathXmlApplicationContext;
 
 
 /**
 /**
@@ -8,8 +10,12 @@ import org.springframework.context.support.ClassPathXmlApplicationContext;
  */
  */
 public class ZhengCmsRpcServiceApplication {
 public class ZhengCmsRpcServiceApplication {
 
 
+	private static Logger _log = LoggerFactory.getLogger(ZhengCmsRpcServiceApplication.class);
+
 	public static void main(String[] args) {
 	public static void main(String[] args) {
+		_log.info(">>>>> zheng-cms-rpc-service 正在启动 <<<<<");
 		new ClassPathXmlApplicationContext("classpath*:applicationContext*.xml");
 		new ClassPathXmlApplicationContext("classpath*:applicationContext*.xml");
+		_log.info(">>>>> zheng-cms-rpc-service 启动完成 <<<<<");
 		System.out.println(">>>>> zheng-cms-rpc-service 启动完成 <<<<<");
 		System.out.println(">>>>> zheng-cms-rpc-service 启动完成 <<<<<");
 	}
 	}
 
 

+ 6 - 0
zheng-upms/zheng-upms-rpc-service/src/main/java/com/zheng/upms/rpc/service/ZhengUpmsRpcServiceApplication.java

@@ -1,5 +1,7 @@
 package com.zheng.upms.rpc.service;
 package com.zheng.upms.rpc.service;
 
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 import org.springframework.context.support.ClassPathXmlApplicationContext;
 import org.springframework.context.support.ClassPathXmlApplicationContext;
 
 
 /**
 /**
@@ -8,8 +10,12 @@ import org.springframework.context.support.ClassPathXmlApplicationContext;
  */
  */
 public class ZhengUpmsRpcServiceApplication {
 public class ZhengUpmsRpcServiceApplication {
 
 
+	private static Logger _log = LoggerFactory.getLogger(ZhengUpmsRpcServiceApplication.class);
+
 	public static void main(String[] args) {
 	public static void main(String[] args) {
+		_log.info(">>>>> zheng-upms-rpc-service 正在启动 <<<<<");
 		new ClassPathXmlApplicationContext("classpath*:applicationContext*.xml");
 		new ClassPathXmlApplicationContext("classpath*:applicationContext*.xml");
+		_log.info(">>>>> zheng-upms-rpc-service 启动完成 <<<<<");
 		System.out.println(">>>>> zheng-upms-rpc-service 启动完成 <<<<<");
 		System.out.println(">>>>> zheng-upms-rpc-service 启动完成 <<<<<");
 	}
 	}