2021
11-05
11-05
mybatis 如何通过resultMap 返回long
mybatisresultMap返回long<resultMapid="ResultOfLong"type="java.lang.Long"><resultcolumn="budget"property="budget"javaType="long"/></resultMap>mybatislong类型返回为null报异常Mappermethod'com.mpn.dao.TWeatherMapper.avgWeatherTemperatureattemptedtoreturnnullfromamethodwithaprimitivereturntype(long).<selectid="avgWeatherTemperature"resultType="java.lang.Long"...
继续阅读 >