Browse Source

更新后台管理首页路径

shuzheng 9 years ago
parent
commit
5d1271c4e8

+ 2 - 1
zheng-upms/zheng-upms-server/src/main/java/com/zheng/upms/admin/controller/ManageController.java

@@ -9,6 +9,7 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Controller;
 import org.springframework.stereotype.Controller;
 import org.springframework.ui.ModelMap;
 import org.springframework.ui.ModelMap;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
 
 
 import java.util.List;
 import java.util.List;
 
 
@@ -25,7 +26,7 @@ public class ManageController {
 	@Autowired
 	@Autowired
 	private UpmsSystemService upmsSystemService;
 	private UpmsSystemService upmsSystemService;
 
 
-	@RequestMapping(value = {"", "/index"})
+	@RequestMapping(value = "/index", method = RequestMethod.GET)
 	public String index(ModelMap modelMap) {
 	public String index(ModelMap modelMap) {
 		UpmsSystemExample upmsSystemExample = new UpmsSystemExample();
 		UpmsSystemExample upmsSystemExample = new UpmsSystemExample();
 		upmsSystemExample.createCriteria()
 		upmsSystemExample.createCriteria()

+ 1 - 1
zheng-upms/zheng-upms-server/src/main/webapp/WEB-INF/jsp/index.jsp

@@ -5,4 +5,4 @@
 <%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
 <%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
 <%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
 <%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
 <c:set var="basePath" value="${pageContext.request.contextPath}"/>
 <c:set var="basePath" value="${pageContext.request.contextPath}"/>
-<c:redirect url="/manage"/>
+<c:redirect url="/manage/index"/>