1、问题: id 主键没有自动新增导致字段过长
2、解决问题:
在application.xml中添加配置
mybatis-plus:
mapper-locations: classpath:/mapper/**/*.xml #sql的映射路径 classpath*是指扫描所有类路径的映射文件
global-config:
db-config:
id-type: auto #调整id为自增主键
3、启动问题解决
1、问题: id 主键没有自动新增导致字段过长
2、解决问题:
在application.xml中添加配置
mybatis-plus:
mapper-locations: classpath:/mapper/**/*.xml #sql的映射路径 classpath*是指扫描所有类路径的映射文件
global-config:
db-config:
id-type: auto #调整id为自增主键
3、启动问题解决