只需添加
@Controller带有适当处理程序方法的
@Controllerpublic class RootController { @RequestMapping(value = "/", method = RequestMethod.GET) public String root() { return "index"; }}假设
index.jsp在
/WEB-INF/view。

只需添加
@Controller带有适当处理程序方法的
@Controllerpublic class RootController { @RequestMapping(value = "/", method = RequestMethod.GET) public String root() { return "index"; }}假设
index.jsp在
/WEB-INF/view。