在controller层的返回页面前 去掉/ 就好了 实测! @RequestMapping("/") public String index(){ return "index"; }return 返回的不要加 /