How to define paramters in Spring RequestBody as Not Null?

前端 未结 0 1545
醉酒成梦
醉酒成梦 2021-01-24 18:49

I want to be able to define certain variables as not null in Spring\'s @RequestBody. That way Spring\'s controller will reject any requests whose body doesn\'t have certain vari

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