@RequestMapping中method的默认值是什么?

没有默认值,如果不配置method,以下几种皆能访问。

RequestMethod.GET
RequestMethod.POST
RequestMethod.PUT
RequestMethod.DELETE

转载于:https://my.oschina.net/jirglt/blog/3056814

猜你喜欢

转载自blog.csdn.net/weixin_34314962/article/details/91808781