How use PUT method in Springboot Restcontroller?

前端 未结 5 1655
花落未央
花落未央 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 15:09

    you can add @RestController annotation before your class.

    @RestController
    @RequestMapping(value = "/v1/range")
    public class RangeRestController {
    }
    

提交回复
热议问题