这里最后一句"java.lang Integer cannot be cast to java.lang.String"点出了问题的关键 意为:类型强制转换错误; 这时候就得去我们编写的xxxMapper.xml里看 parameterType的参数类型是什么……