spring接口入参校验,有遇到这种问题吗
spring吧
全部回复
仅看楼主
level 1
17lvshen
楼主
入参类型定义为integer前段传入小数,默认强转integer了,
这样就拿不到原来的小数,进行校验了。
例如提示他不能传入小数
2017年09月15日 01点09分
1
1