Skip to content

Commit

Permalink
rpc-service#main启动增加日志
Browse files Browse the repository at this point in the history
  • Loading branch information
shuzheng committed Feb 11, 2017
1 parent 05ceee6 commit ea673b8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.zheng.cms.rpc.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
Expand All @@ -8,8 +10,12 @@
*/
public class ZhengCmsRpcServiceApplication {

private static Logger _log = LoggerFactory.getLogger(ZhengCmsRpcServiceApplication.class);

public static void main(String[] args) {
_log.info(">>>>> zheng-cms-rpc-service 正在启动 <<<<<");
new ClassPathXmlApplicationContext("classpath*:applicationContext*.xml");
_log.info(">>>>> zheng-cms-rpc-service 启动完成 <<<<<");
System.out.println(">>>>> zheng-cms-rpc-service 启动完成 <<<<<");
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.zheng.upms.rpc.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
Expand All @@ -8,8 +10,12 @@
*/
public class ZhengUpmsRpcServiceApplication {

private static Logger _log = LoggerFactory.getLogger(ZhengUpmsRpcServiceApplication.class);

public static void main(String[] args) {
_log.info(">>>>> zheng-upms-rpc-service 正在启动 <<<<<");
new ClassPathXmlApplicationContext("classpath*:applicationContext*.xml");
_log.info(">>>>> zheng-upms-rpc-service 启动完成 <<<<<");
System.out.println(">>>>> zheng-upms-rpc-service 启动完成 <<<<<");
}

Expand Down

0 comments on commit ea673b8

Please sign in to comment.