这种情况要不就是你想加载页面
@RequestMapping("/welcome1.html")
public String welcome1(){
return "/welcome1";
}
但写错了
改正:
@RequestMapping("/welcome1.html")
public String welcome1(){
return "welcome1";
}
或者你想return一个值
加入注解
@ResponseBody
返回
标签:accessible,return,configured,template,might,welcome1 From: https://www.cnblogs.com/lin-07/p/17288139.html