浏览代码

配置修改

Signed-off-by: anderx <312518615@qq.com>
anderx 5 年之前
父节点
当前提交
69f020b110
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      src/main/java/com/kede/common/controller/WebpageController.java

+ 8 - 0
src/main/java/com/kede/common/controller/WebpageController.java

@@ -323,6 +323,14 @@ public class WebpageController extends BaseController {
 		modelview.setView(rv);
 		return modelview;
 	}
+	@RequestMapping(value = "", method = RequestMethod.GET)
+	public ModelAndView shome(HttpServletRequest request, ModelAndView modelview) {
+		RedirectView rv = new RedirectView();
+		modelview.setViewName("/portal/index");
+		rv.setExposeModelAttributes(false);
+		modelview.setView(rv);
+		return modelview;
+	}
 	@SuppressWarnings("unchecked")
 	@RequestMapping(value = "/portal/index", method = RequestMethod.GET)
 	public ModelAndView protalIndex(HttpServletRequest request, ModelAndView modelview) {