文章 2023-11-13 来自:开发者社区

Springboot接口同时支持GET和POST请求

同时支持GET/POST两种请求方式@RequestMapping(value = "/test", method = {RequestMethod.GET,RequestMethod.POST}) @ResponseBody public String test(HttpServletRequest request) { return "ok"; }@RequestMapping 注解能够...

问答 2020-05-29 来自:开发者社区

SpringBoot+JPA做rest接口时,当发送一个get请求会默认查询一次数据,是什么原理.

@GetMapping("/view/{id}") public String toTest(@PathVariable("id") Log log, Model model){ model.addAttribute("log", log); return "/system/actionLog/detail"; } @Data @Entity @Table(na...

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

微服务

构建可靠、高效、易扩展的技术基石

+关注