您的位置:首页技术文章
文章详情页

java - spring boot 访问静态页面出现Request method ’GET’ not supported异常?

【字号: 日期:2024-02-10 16:23:01浏览:50作者:猪猪

问题描述

今天发现不能访问静态页面了,报的异常的是Request method ’GET’ not supported.html页面放在static下面java - spring boot 访问静态页面出现Request method ’GET’ not supported异常?

页面内容:java - spring boot 访问静态页面出现Request method ’GET’ not supported异常?

异常:java - spring boot 访问静态页面出现Request method ’GET’ not supported异常?

请教这是什么引起的?以前都是可以访问的.

问题解答

回答1:

发现问题所在了,java - spring boot 访问静态页面出现Request method ’GET’ not supported异常?

回答2:

因为你没引入jquery,被你注释了。

回答3:

检查controller的代码或者相关的配置吧

回答4:

检查你的控制层(Controller),出现这个错误是因为你请求的映射地址不支持GET方式的请求

回答5:

你还是把 controller 相关代码也发出来吧,不然也看不出什么

标签: java
相关文章: