From dbfe17a94a6ba59af42d550e0391357a5fc65259 Mon Sep 17 00:00:00 2001 From: leebj Date: Thu, 18 Jul 2024 18:26:37 +0900 Subject: [PATCH] =?UTF-8?q?=EC=95=94=ED=98=B8=ED=99=94=20=ED=85=8C?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=20=EC=BB=A4=EB=B0=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cokr/xit/fims/base/web/MainController.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/cokr/xit/fims/base/web/MainController.java b/src/main/java/cokr/xit/fims/base/web/MainController.java index 493faaf8..97a1b21c 100644 --- a/src/main/java/cokr/xit/fims/base/web/MainController.java +++ b/src/main/java/cokr/xit/fims/base/web/MainController.java @@ -16,6 +16,7 @@ import org.springframework.web.servlet.mvc.method.annotation.SseEmitter; import cokr.xit.base.code.CommonCode; import cokr.xit.base.code.service.CodeService; +import cokr.xit.base.crypto.bean.XitAria; import cokr.xit.base.security.access.service.AuthorityService; import cokr.xit.base.user.SigunguQuery; import cokr.xit.base.user.service.SigunguDepartmentService; @@ -169,6 +170,10 @@ public class MainController extends cokr.xit.base.web.MainController { @RequestMapping(name="접속자 IP 확인", value="/ipInfo.do") public ModelAndView ipInfo(HttpServletRequest hreq) { + //테스트 + XitAria crypto = new XitAria("xit-aria"); + String a = crypto.encrypt("1234567890123"); + String b = crypto.decrypt(a); String remoteAddr = CmmnUtil.getClientIpAddr(hreq); @@ -202,7 +207,10 @@ public class MainController extends cokr.xit.base.web.MainController { return new ModelAndView("jsonView") .addObject("remoteAddr", remoteAddr) - .addObject("net", net); + .addObject("net", net) + .addObject("a",a) + .addObject("b",b); + }