springboot整合com.baomidou.mybatisplus出现ID参数类型不匹配的问题

本文解决了一个在使用MyBatis Plus时遇到的关于ID注解的错误,详细介绍了错误的原因在于使用了不支持的ID注解形式,并提供了正确的注解方式@TableId(value=idtype=IdType.AUTO)。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

错误描述:
error : “Not Found” message : “No message available” path : “/user/del” 。。。。。。type mismatch
解决办法:
不能使用以前的ID注解的形式惊醒注解,因为com.baomidou.mybatisplus不支持,导致数据绑定出错
要使用@TableId(value = “id”, type = IdType.AUTO)
个人开源spring cloud脚手架,快速上手开发

Error creating bean with name 'monitorController': Unsatisfied dependency expressed through field 'zkTecoParkingService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ZKTecoParkingServiceImpl': Unsatisfied dependency expressed through field 'zkTecoPutCarnumberMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ZKTecoPutCarnumberMapper' defined in URL [jar:file:/data/zhly/wtcp/server/mangshan-bigdata-interface-1.0.0.jar!/BOOT-INF/classes!/cn/com/wanwei/bigdata/mapper/ZKTecoPutCarnumberMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'mybatis-plus-com.baomidou.mybatisplus.autoconfigure.MybatisPlusProperties': Could not bind properties to 'MybatisPlusProperties' : prefix=mybatis-plus, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'mybatis-plus.configuration' to com.baomidou.mybatisplus.core.MybatisConfiguration
最新发布
08-03
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值