From 20a33c3b9ac3e44f9ae5156d0c8a5351c78590b0 Mon Sep 17 00:00:00 2001 From: Saturneric Date: Sun, 29 Mar 2020 17:43:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/codesdream/ase/controller/LeavesController.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/codesdream/ase/controller/LeavesController.java b/src/main/java/com/codesdream/ase/controller/LeavesController.java index b4e1d84..ae85621 100644 --- a/src/main/java/com/codesdream/ase/controller/LeavesController.java +++ b/src/main/java/com/codesdream/ase/controller/LeavesController.java @@ -7,11 +7,9 @@ import com.codesdream.ase.component.datamanager.JSONParameter; import com.codesdream.ase.component.json.request.UserLeaveAuth; import com.codesdream.ase.component.json.request.UserLeaveRequest; -import com.codesdream.ase.component.json.request.UserLoginChecker; import com.codesdream.ase.component.json.request.UserSGettudentLeaveListRequest; -import com.codesdream.ase.component.json.respond.JSONBaseRespondObject; import com.codesdream.ase.component.json.respond.JSONStandardFailedRespond; -import com.codesdream.ase.exception.InvalidFormFormatException; +import com.codesdream.ase.exception.innerservererror.InvalidFormFormatException; import com.codesdream.ase.exception.notfound.NotFoundException; import com.codesdream.ase.model.leaves.Leave; import com.codesdream.ase.service.LeavesService; @@ -21,7 +19,6 @@ import org.springframework.ui.Model; 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.client.HttpClientErrorException; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; @@ -49,10 +46,10 @@ public class LeavesController { @Resource private ASEUsernameEncoder usernameEncoder; - @RequestMapping(value = "/") +/* @RequestMapping(value = "/") String printLeave(Model model) { return "Leave"; - } + }*/ //提交请假申请 @RequestMapping(value = "/Leave/check", method = RequestMethod.POST)