MyBatis中mysql中爲int,則jdbcType爲INTEGER

<resultMap id="BaseResultMap" type="com.example.demo.domain.User">
<result column="age" property="age" jdbcType="INTEGER" />
</resultMap>

MyBatis中,Java 中POJO的id類型是Integer,mysql中是int,則jdbcType爲INTEGER而非INT

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章