Index: core-module/src/main/java/egovframework/com/cmm/web/EgovComIndexController.java =================================================================== diff -u -r3f813b3844a54ad2003c22f245427e088a89cb87 -r4987929cac9e36aa7f7e3eba63e6226c208f5330 --- core-module/src/main/java/egovframework/com/cmm/web/EgovComIndexController.java (.../EgovComIndexController.java) (revision 3f813b3844a54ad2003c22f245427e088a89cb87) +++ core-module/src/main/java/egovframework/com/cmm/web/EgovComIndexController.java (.../EgovComIndexController.java) (revision 4987929cac9e36aa7f7e3eba63e6226c208f5330) @@ -1,7 +1,5 @@ package egovframework.com.cmm.web; -import egovframework.com.cmm.IncludedCompInfoVO; -import egovframework.com.ext.jstree.support.util.ParameterParser; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.BeansException; @@ -10,14 +8,11 @@ import org.springframework.context.ApplicationContextAware; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; -import org.springframework.util.StringUtils; import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.servlet.ModelAndView; import javax.servlet.http.HttpServletRequest; -import java.util.Map; @Controller public class EgovComIndexController implements ApplicationContextAware, InitializingBean { @@ -26,20 +21,16 @@ private static final Logger LOGGER = LoggerFactory.getLogger(EgovComIndexController.class); - private Map map; - public void afterPropertiesSet() throws Exception {} public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { this.applicationContext = applicationContext; - LOGGER.info("EgovComIndexController setApplicationContext method has called!"); } @ResponseBody - @RequestMapping(value = "/index.do") + @RequestMapping(value = "/") public ModelAndView index(ModelMap model, HttpServletRequest request) throws Exception { - ModelAndView modelAndView = new ModelAndView("jsonView"); modelAndView.addObject("result", "jsTree Service Framework is not support frontside page"); return modelAndView; Index: core-module/src/main/java/egovframework/com/ext/jstree/support/security/controller/PagesController.java =================================================================== diff -u -r3378aeef18251570015a9efbed6402f39cffd95d -r4987929cac9e36aa7f7e3eba63e6226c208f5330 --- core-module/src/main/java/egovframework/com/ext/jstree/support/security/controller/PagesController.java (.../PagesController.java) (revision 3378aeef18251570015a9efbed6402f39cffd95d) +++ core-module/src/main/java/egovframework/com/ext/jstree/support/security/controller/PagesController.java (.../PagesController.java) (revision 4987929cac9e36aa7f7e3eba63e6226c208f5330) @@ -8,8 +8,10 @@ import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.core.userdetails.UserDetails; +import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.servlet.ModelAndView; @@ -34,12 +36,12 @@ return model; } + @ResponseBody @RequestMapping(value = {"/accessdenied"}, method = { RequestMethod.GET, RequestMethod.POST }) - public ModelAndView accessDeniedPage() { - ModelAndView model = new ModelAndView(); - model.addObject("message", "Either username or password is incorrect."); - model.setViewName("egovframework/com/ext/jstree/support/security/accessdenied"); - return model; + public ModelAndView accessDeniedPage(ModelMap model, HttpServletRequest request) throws Exception { + ModelAndView modelAndView = new ModelAndView("jsonView"); + modelAndView.addObject("result", "Either username or password is incorrect"); + return modelAndView; } private String getUser() {