405-There was an unexpected error (type=Method Not Allowed, status=405).

代码:

 原因:请求方式问题

修改为 :   Post请求改为Get请求即可

 @GetMapping("/")
    public String show() {
        return "/index";
    }

成功!

 

 


版权声明:本文为weixin_44943981原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。