mybatisplus jdbcType=INT
The jdbcType attribute in MyBatis-Plus is used to specify the JDBC data type for a particular column in a database table.
For example, if you have a column named "age" in your table and you want to specify its JDBC data type as INT, you can use the jdbcType attribute like this:
@TableField(jdbcType = JdbcType.INTEGER)
private Integer age;
This tells MyBatis-Plus to map the "age" column to the INT JDBC data type when performing database operations.
原文地址: https://www.cveoy.top/t/topic/iAPY 著作权归作者所有。请勿转载和采集!