mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-07 01:18:27 +08:00
dd
This commit is contained in:
parent
ba4514164e
commit
7792e31dfa
@ -1,39 +1,45 @@
|
|||||||
package org.maxkey.web.endpoint;
|
package org.maxkey.web.endpoint;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.servlet.ModelAndView;
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Index
|
* Index
|
||||||
* @author Crystal.Sea
|
* @author Crystal.Sea
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Controller
|
@Controller
|
||||||
public class IndexEndpoint {
|
public class IndexEndpoint {
|
||||||
|
|
||||||
private static Logger _logger = LoggerFactory.getLogger(IndexEndpoint.class);
|
private static Logger _logger = LoggerFactory.getLogger(IndexEndpoint.class);
|
||||||
|
|
||||||
|
|
||||||
@RequestMapping(value={"/main"})
|
@RequestMapping(value={"/main"})
|
||||||
public ModelAndView home() {
|
public ModelAndView home() {
|
||||||
_logger.debug("IndexController /main.");
|
_logger.debug("IndexController /main.");
|
||||||
|
|
||||||
return new ModelAndView("main");
|
return new ModelAndView("main");
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(value={"/"})
|
@RequestMapping(value={"/"})
|
||||||
public ModelAndView index() {
|
public ModelAndView index() {
|
||||||
_logger.debug("IndexController /.");
|
_logger.debug("IndexController /.");
|
||||||
return new ModelAndView("index");
|
return new ModelAndView("index");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(value={"/accessdeny"})
|
@RequestMapping(value={"/accessdeny"})
|
||||||
public ModelAndView accessdeny() {
|
public ModelAndView accessdeny() {
|
||||||
_logger.debug("exception/accessdeny.");
|
_logger.debug("exception/accessdeny.");
|
||||||
return new ModelAndView("exception/accessdeny");
|
return new ModelAndView("exception/accessdeny");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @RequestMapping(value={"/error"})
|
||||||
|
// public ModelAndView error() {
|
||||||
|
// _logger.debug("exception/error.");
|
||||||
|
// return new ModelAndView("exception/error");
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user