The literal 9999999999 of type int is out of range 或 400(rad request)

来源:互联网 发布:mysql grouping set 编辑:程序博客网 时间:2024/06/06 03:38

在后台定义了Integer类型去接收前台传过来的整数类型。

但是,如果前台传过来的整数值超过了9位数,前台就会报400(rad request),即传过去的值的类型与在后台接收的值的类型不一值。

如果想要传值超过9位数,则把后台定义的Integer类型改成Long类型,就可以接收超过9位数以上的数值了。


参考:http://www.mysjtu.com/page/M0/S890/890459.html

0 0
原创粉丝点击