mapper.xml文件
<select id="getData" parameterType="map" resultType="hashmap">
SELECT num FROM table
</select>
list里面是个map。其中num字段在mysql中tinyint型,界面接收的num值是true,false
解决方案:
<select id="getData" parameterType="map" resultType="hashmap">
SELECT num *1 FROM table
</select>
数据库是tinyint值mabatis返回给前端的是true的问题
猜你喜欢
转载自blog.csdn.net/u011518709/article/details/141423392
今日推荐
周排行