模板修改

This commit is contained in:
谢洪龙
2017-07-25 18:09:50 +08:00
parent 234e360f3e
commit 65a221f013
278 changed files with 13016 additions and 53569 deletions
+14 -3
View File
@@ -1,14 +1,15 @@
package com.ifish.controller;
import java.util.Calendar;
import com.ifish.helper.SecurityService;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.jsp.jstl.core.Config;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
@@ -21,6 +22,9 @@ import org.springframework.web.servlet.ModelAndView;
@Controller
public class Index {
@Autowired
private SecurityService securityService;
@RequestMapping(value = "/login", method = RequestMethod.GET)
public ModelAndView login(
@RequestParam(value = "error", required = false) String error,
@@ -44,7 +48,7 @@ public class Index {
return mv;
}
}
mv.setViewName("index");
mv.setViewName("login");
return mv;
}
@@ -56,4 +60,11 @@ public class Index {
return mv;
}
@RequestMapping(value = {"", "/", "index"}, method = RequestMethod.GET)
public ModelAndView test1() {
ModelAndView mv = new ModelAndView();
mv.setViewName("index");
return mv;
}
}