mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-06 17:08:29 +08:00
dd
This commit is contained in:
parent
ba4514164e
commit
7792e31dfa
@ -1,39 +1,45 @@
|
||||
package org.maxkey.web.endpoint;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
/**
|
||||
* Index
|
||||
* @author Crystal.Sea
|
||||
*
|
||||
*/
|
||||
@Controller
|
||||
public class IndexEndpoint {
|
||||
|
||||
private static Logger _logger = LoggerFactory.getLogger(IndexEndpoint.class);
|
||||
|
||||
|
||||
@RequestMapping(value={"/main"})
|
||||
public ModelAndView home() {
|
||||
_logger.debug("IndexController /main.");
|
||||
|
||||
return new ModelAndView("main");
|
||||
}
|
||||
|
||||
@RequestMapping(value={"/"})
|
||||
public ModelAndView index() {
|
||||
_logger.debug("IndexController /.");
|
||||
return new ModelAndView("index");
|
||||
|
||||
}
|
||||
|
||||
@RequestMapping(value={"/accessdeny"})
|
||||
public ModelAndView accessdeny() {
|
||||
_logger.debug("exception/accessdeny.");
|
||||
return new ModelAndView("exception/accessdeny");
|
||||
}
|
||||
package org.maxkey.web.endpoint;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
/**
|
||||
* Index
|
||||
* @author Crystal.Sea
|
||||
*
|
||||
*/
|
||||
@Controller
|
||||
public class IndexEndpoint {
|
||||
|
||||
private static Logger _logger = LoggerFactory.getLogger(IndexEndpoint.class);
|
||||
|
||||
|
||||
@RequestMapping(value={"/main"})
|
||||
public ModelAndView home() {
|
||||
_logger.debug("IndexController /main.");
|
||||
|
||||
return new ModelAndView("main");
|
||||
}
|
||||
|
||||
@RequestMapping(value={"/"})
|
||||
public ModelAndView index() {
|
||||
_logger.debug("IndexController /.");
|
||||
return new ModelAndView("index");
|
||||
|
||||
}
|
||||
|
||||
@RequestMapping(value={"/accessdeny"})
|
||||
public ModelAndView accessdeny() {
|
||||
_logger.debug("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