|
|
@ -1,5 +1,6 @@
|
|
|
|
package cokr.xit.adds.nims.web;
|
|
|
|
package cokr.xit.adds.nims.web;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
@ -13,6 +14,10 @@ import cokr.xit.foundation.web.AbstractController;
|
|
|
|
value = {"/adds/nims"}
|
|
|
|
value = {"/adds/nims"}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
public class TestController extends AbstractController {
|
|
|
|
public class TestController extends AbstractController {
|
|
|
|
|
|
|
|
// FIXME: property injection으로 변경??
|
|
|
|
|
|
|
|
@Value("${app.api.host:http://localhost:9076}")
|
|
|
|
|
|
|
|
private String apiHost;
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(
|
|
|
|
@RequestMapping(
|
|
|
|
name = "Nims 메인",
|
|
|
|
name = "Nims 메인",
|
|
|
|
value = {"/barcode/main.do"}
|
|
|
|
value = {"/barcode/main.do"}
|
|
|
@ -20,6 +25,6 @@ public class TestController extends AbstractController {
|
|
|
|
public ModelAndView main() {
|
|
|
|
public ModelAndView main() {
|
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
mav.setViewName("adds/nims/barcode-read");
|
|
|
|
mav.setViewName("adds/nims/barcode-read");
|
|
|
|
return mav;//.addObject("menus", this.toJson(mav.getModel().remove("menus")));
|
|
|
|
return mav.addObject("apiHost", apiHost);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|