Controller层通过@ModelAttribute接收参数
@RestController
@RequestMapping(path = "/")
public class Controller {
@GetMapping(value = "/test")
public void test(@ModelAttribute testDTO testDTO){
}
}
Controller层通过@ModelAttribute接收参数
@RestController
@RequestMapping(path = "/")
public class Controller {
@GetMapping(value = "/test")
public void test(@ModelAttribute testDTO testDTO){
}
}