java int转Short

使用short(xx)

problemMultipleChoiceDO.setExamCount((short)0);//在数据库中是smallint类型
原文地址:https://www.cnblogs.com/yang101/p/11294292.html