文章详情页
java - spring boot 访问静态页面出现Request method ’GET’ not supported异常?
问题描述
今天发现不能访问静态页面了,报的异常的是Request method ’GET’ not supported.html页面放在static下面
页面内容:
异常:
请教这是什么引起的?以前都是可以访问的.
问题解答
回答1:发现问题所在了,
回答2:因为你没引入jquery,被你注释了。
回答3:检查controller的代码或者相关的配置吧
回答4:检查你的控制层(Controller),出现这个错误是因为你请求的映射地址不支持GET方式的请求
回答5:你还是把 controller 相关代码也发出来吧,不然也看不出什么
标签:
java
相关文章:
1. angular.js - 请教angularjs里html和js通信的问题2. angular.js - 我想实现打印angular $scope数据,代码如何实现呢?求教(如下图)3. angular.js - 在用会话存储传递参数时,使用angularjs冲突4. angular.js - 用angular2-cli打包项目之后,跳转路由刷新会报404的错误5. node.js - 怎么在初始化的时候使得一个子组件不加载?6. angular.js - angular-ueditor使用中,插入图片,加载完成后不更新angularmodel的问题;7. javascript - antdesign底层弹出个confirmModal。怎么获取底层的this?8. javascript - jquery中的$.post()为什么不能跨域提交数据呢?9. java - SSH框架中写分页时service层中不能注入分页类10. javascript - 关于单选框的问题,小白一枚,希望有人帮帮忙
排行榜