修改controller返回值,将返回路径改成返回视图名称,代码如下:
package com.it.app.web.controller;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.RequestMapping;@Controller@RequestMapping(value="/")public class IndexController { @RequestMapping public String index(){ System.out.println("IndexController:Passing through...");// return "WEB-INF/views/jsp/index.jsp"; return "index"; } }