no message

main
이범준 4 months ago
parent 2094ee47e4
commit 09cfc04b7b

@ -7,7 +7,6 @@ import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
@ -32,11 +31,7 @@ import cokr.xit.foundation.web.RequestHandlerReader;
@Controller @Controller
public class MainController extends cokr.xit.base.web.MainController { public class MainController extends cokr.xit.base.web.MainController {
@Value("${server.sggCd}")
private String sggCd;
@Value("${server.instCd}")
private String instCd;
@Autowired @Autowired
private TaskRequestMappingHandlerMapping requestHandlers; private TaskRequestMappingHandlerMapping requestHandlers;
@ -62,8 +57,7 @@ public class MainController extends cokr.xit.base.web.MainController {
@Override @Override
public ModelAndView loginPage() { public ModelAndView loginPage() {
ModelAndView mav = new ModelAndView("login"); ModelAndView mav = new ModelAndView("login");
System.out.println("시군구....");
System.out.println(sggCd);
List<DataObject> sggs = sggDeptService.getSigunguList(new SigunguQuery()); List<DataObject> sggs = sggDeptService.getSigunguList(new SigunguQuery());
if (sggs.isEmpty()) { if (sggs.isEmpty()) {
throw new RuntimeException("No sigungu info found."); 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("sggList", sggs);
mav.addObject("sysInstCd", instCd);
mav.addObject("sysSggCd", sggCd); mav.addObject("sysSggCd", System.getProperty("sgg.active"));
return mav; return mav;

@ -1,7 +1,5 @@
server: server:
shutdown: graceful shutdown: graceful
sggCd: '@sggCd@'
instCd: '@instCd@'
port: 9078 port: 9078
servlet: servlet:
context-path: / context-path: /

Loading…
Cancel
Save