IDEA错误提示:
1.===》org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'airplaneServiceImpl': Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'airplaneMapper' defined in file [D:\IDEA_2020\Test3\target\classes\com\example\demo\mapper\AirplaneMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Fac

在使用Spring Boot和Mybatis-plus集成时遇到一个问题,IDEA报错:'org.springframework.beans.factory.UnsatisfiedDependencyException' 和 'MybatisPlusException: @TableId can't more than one in Class'。错误源于在'com.example.demo.po.Flight'类中定义了超过一个@TableId注解,这与数据库表中主键的限制冲突。解决方案是删除Flight类中多余的@TableId注解,并相应调整数据库表结构。
最低0.47元/天 解锁文章

4648

被折叠的 条评论
为什么被折叠?



