springboot报错:Request method 'GET' not supported
来源:互联网 发布:js更新json值 编辑:程序博客网 时间:2024/06/10 01:18
controller类:
package com.rabbit.controller;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.web.bind.annotation.PostMapping;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RestController;import com.rabbit.hello.HelloSender1;@RestController@RequestMapping("/rabbit")public class RabbitTest { @Autowired private HelloSender1 helloSender1; @PostMapping("/hello") public void hello() { helloSender1.send(); }}结果通过地址栏访问hello方法报不支持Get访问,原来地址栏输入链接默认都是Get方式,将@PostMapping改为@RequestMapping就可以了
阅读全文
0 0
- springboot报错:Request method 'GET' not supported
- Request method 'GET' not supported
- Request method 'GET' not supported
- spring MVC form表单提交用RequestMethod.POST报错 : Request method 'GET' not supported
- 记另类Request method 'GET' not supported
- 解决Request method "GET" not supported
- springframework Request method 'GET' not supported
- 解决Request method 'GET' not supported问题
- SpringBoot 调用ajax POST 方法报Request method 'POST' not supported解决方法
- request method 'post' not supported
- Request method 'POST' not supported
- spring mvc处理json文件静态资源文件报错Request method 'POST' not supported
- servlet报错HTTP method GET is not supported by this URL
- Spring MVC出现POST 400 Bad Request &405 Request method 'GET' not supported
- Spring MVC-Request method 'POST' not supported:
- WARN : Request method 'DELETE' not supported
- request method 'post' not supported问题解决
- jsp spring mvc 上传时HTTP Status 405 - Request method 'GET' not supported是什么原因
- 基於Rx.js與generator的排序算法可視化
- 数据库索引原理及优化
- Caffe 安装 指定protoc版本
- Google QUIC
- jssdk获取微信用户网络状态,公众号用户网络状态demo实例
- springboot报错:Request method 'GET' not supported
- C++面试出现频率最高的30道题目
- pyqt添加或更新图片命令
- javascript封装函数仿jQuer选择器(日常基本够用)
- Python学习基础知识概要
- 使用python 分析统计nginx访问日志ip次数并且排序
- Centos搭建ceph+++二、准备工作
- VMware Workstation上安装Ubuntu 16.04 Desktop操作系统
- Parameter Server 详解