You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2022/11/01 03:24:05 UTC

[GitHub] [servicecomb-java-chassis] weinihaom commented on issue #3354: @RequestBody 传空,不能拦截,会将空对象传导到controller。

weinihaom commented on issue #3354:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3354#issuecomment-1297973777

   > 
   
   > `showMonthUsages(@Requestbody @Valid @NotNull School requestbody)` 应该是正确的用法, 关闭问题。
   @Requestbody注解,就已经包含了非空的意思。再加一个@NotNull显得累赘。而且不兼容之前的版本,升级serviceComb需要开发者手动去给每个接口,手动增加一个@NotNull注解。这非常不合理
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org