WASInfo 클래스 수정

main
이범준 7 months ago
parent bed64f7de7
commit 8688ac415c

@ -1,11 +1,15 @@
package cfs.trsmrcv.web;
package cfs;
/**
* .
* gubun .
* : dev
* : dev( [asdfDev, zxcvDev] )
* : prod( [A,B,C] [1,2,3] )
*/
public class WASInfo {
public static String gubun = "xitPcDev";
public static final String gubun = "xitPcDev";
public static String getWAS(){
return gubun;
}
}

@ -14,19 +14,23 @@ import org.springframework.beans.factory.annotation.Value;
import com.inswave.template.controller.MainController;
import cfs.WASInfo;
public class TrsmrcvUtil {
protected static Logger logger = LoggerFactory.getLogger(TrsmrcvUtil.class);
public static Map<String,String> getInfoMapForConnSusinLog(HttpServletRequest pReq){
Map<String,String> map = new HashMap<String, String>();
map.put("RUN_WAS", WASInfo.gubun);
map.put("RUN_WAS", WASInfo.getWAS());
map.put("DATETIME", (new SimpleDateFormat ("yyyyMMddHHmmss")).format(new Date()));
map.put("CALL_URI", pReq.getRequestURI());
map.put("REQ_IP", pReq.getRemoteAddr());
return map;
}
public static void printRequestInfo(HttpServletRequest pReq){
printRequestURI(pReq);
printRequestHeader(pReq);

Loading…
Cancel
Save