spring boot以实体类方式接收前台传递的参数

it2023-03-16  75

Controller层通过@ModelAttribute接收参数

@RestController @RequestMapping(path = "/") public class Controller { @GetMapping(value = "/test") public void test(@ModelAttribute testDTO testDTO){ } }
最新回复(0)