【发布时间】:2018-11-28 16:15:22
【问题描述】:
我可以通过以下两个选项通过 DTO,但有人可以解释一下哪个更好以及为什么: 1)。公共列表 getWithRequestParam(@RequestParam(value = "personDTO") String personDTO) 抛出 IOException {public List getWithRequestParam(@RequestParam(value = "personDTO") String personDTO) 抛出 IOException {......}
2)。公共列表 getWithRequestParam(PersonDTO personDTO){ }
【问题讨论】:
标签: spring spring-boot spring-data-jpa resttemplate dto