|
|
@ -16,6 +16,7 @@ import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;
|
|
|
|
|
|
|
|
|
|
|
|
import cokr.xit.base.code.CommonCode;
|
|
|
|
import cokr.xit.base.code.CommonCode;
|
|
|
|
import cokr.xit.base.code.service.CodeService;
|
|
|
|
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.security.access.service.AuthorityService;
|
|
|
|
import cokr.xit.base.user.SigunguQuery;
|
|
|
|
import cokr.xit.base.user.SigunguQuery;
|
|
|
|
import cokr.xit.base.user.service.SigunguDepartmentService;
|
|
|
|
import cokr.xit.base.user.service.SigunguDepartmentService;
|
|
|
@ -170,6 +171,11 @@ public class MainController extends cokr.xit.base.web.MainController {
|
|
|
|
@RequestMapping(name="접속자 IP 확인", value="/ipInfo.do")
|
|
|
|
@RequestMapping(name="접속자 IP 확인", value="/ipInfo.do")
|
|
|
|
public ModelAndView ipInfo(HttpServletRequest hreq) {
|
|
|
|
public ModelAndView ipInfo(HttpServletRequest hreq) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
XitAria crypto = new XitAria("xit-aria");
|
|
|
|
|
|
|
|
String a1 = crypto.encrypt("1234567890123");
|
|
|
|
|
|
|
|
String a2 = crypto.decrypt(a1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String remoteAddr = CmmnUtil.getClientIpAddr(hreq);
|
|
|
|
String remoteAddr = CmmnUtil.getClientIpAddr(hreq);
|
|
|
|
|
|
|
|
|
|
|
|
String net = "";
|
|
|
|
String net = "";
|
|
|
@ -202,6 +208,8 @@ public class MainController extends cokr.xit.base.web.MainController {
|
|
|
|
return new ModelAndView("jsonView")
|
|
|
|
return new ModelAndView("jsonView")
|
|
|
|
.addObject("remoteAddr", remoteAddr)
|
|
|
|
.addObject("remoteAddr", remoteAddr)
|
|
|
|
.addObject("net", net)
|
|
|
|
.addObject("net", net)
|
|
|
|
|
|
|
|
.addObject("a1",a1)
|
|
|
|
|
|
|
|
.addObject("a2",a2)
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|