How use PUT method in Springboot Restcontroller?

前端 未结 5 1659
花落未央
花落未央 2021-02-09 14:37

Am developing an application using Spring boot.I tried with all representations verbs like GET, POST , DELETE all are working fine too. By using PUT method, it\'s not supporting

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-09 14:52

    Have you tried the following Request Mapping:

    @RequestMapping(value = "/student/info", method = RequestMethod.PUT)
    

    There's no need to separate the value and the Request Method for the URI.

提交回复
热议问题