请求映射的默认请求方法类型是什么? [英] What is the default request method type for the request mapping?

查看:112
本文介绍了请求映射的默认请求方法类型是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

@RequestMapping 的默认请求方式类型是什么?

What is the default request method type for the @RequestMapping?

@RequestMapping(value = "addGoal")
public String addGoal(Model model) {...}


推荐答案

如果你没有指定任何映射,这个方法将解析所有的http请求,即你可以发送GET,POST,HEAD,OPTIONS,PUT,PATCH,DELETE,TRACE请求到指定的网址,它将被解决。

If you do not specify any mapping this method will resolve all the http request i.e. you can send GET, POST, HEAD, OPTIONS, PUT, PATCH, DELETE, TRACE request to the specified url and it will be resolved.

这篇关于请求映射的默认请求方法类型是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆