no message

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

@ -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<DataObject> 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;

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

Loading…
Cancel
Save