Spring Boot Request body validation on same DTO used for different API

后端 未结 0 1258
既然无缘
既然无缘 2021-02-11 20:00

In my request body DTO, I want specific fields to be required for one of the API but not for another.

My Request body

@Data
class MyClass{
@NotNull
private         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题