基本类型long 转int 可以使用java8提供的Math .toIntExact()转换。 long a = 10; int b = Math.toIntExact(a); l 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交