Spring-Boot 访问Controller时报错可能会是这个坑

报错信息:

代码:

@Controller("/index")
public class IndexController extends BaseController{

    @GetMapping(value="/hello")
    public String index(HttpServletRequest request){
        return this.render("index");
    }
}

感觉没啥锅,瞅半天也瞅不出来,后来才发现是 @Controller中不能写value... MDZZ

原文地址:https://www.cnblogs.com/zhaiyt/p/9844665.html