From 09cfc04b7b3425284e5c8c63031caf92af7643f3 Mon Sep 17 00:00:00 2001 From: leebj Date: Fri, 26 Jul 2024 16:11:37 +0900 Subject: [PATCH] no message --- .../java/cokr/xit/fims/base/web/MainController.java | 12 +++--------- src/main/resources/application.yml | 2 -- 2 files changed, 3 insertions(+), 11 deletions(-) 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 eb68cd14..04d4da92 100644 --- a/src/main/java/cokr/xit/fims/base/web/MainController.java +++ b/src/main/java/cokr/xit/fims/base/web/MainController.java @@ -7,7 +7,6 @@ import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; @@ -32,11 +31,7 @@ import cokr.xit.foundation.web.RequestHandlerReader; @Controller public class MainController extends cokr.xit.base.web.MainController { - @Value("${server.sggCd}") - private String sggCd; - @Value("${server.instCd}") - private String instCd; @Autowired private TaskRequestMappingHandlerMapping requestHandlers; @@ -62,8 +57,7 @@ public class MainController extends cokr.xit.base.web.MainController { @Override public ModelAndView loginPage() { ModelAndView mav = new ModelAndView("login"); - System.out.println("시군구...."); - System.out.println(sggCd); + List sggs = sggDeptService.getSigunguList(new SigunguQuery()); if (sggs.isEmpty()) { throw new RuntimeException("No sigungu info found."); @@ -80,8 +74,8 @@ public class MainController extends cokr.xit.base.web.MainController { mav.addObject("sggList", sggs); - mav.addObject("sysInstCd", instCd); - mav.addObject("sysSggCd", sggCd); + + mav.addObject("sysSggCd", System.getProperty("sgg.active")); return mav; diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 475cdeb9..8e0ef512 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,7 +1,5 @@ server: shutdown: graceful - sggCd: '@sggCd@' - instCd: '@instCd@' port: 9078 servlet: context-path: /