草庐IT

ddlApplicationRunner

全部标签

勇敢尝鲜之Springboot3大坑-集成Mybatisplus报错:ddlApplicationRunner

🌹作者主页:青花锁🌹简介:Java领域优质创作者🏆、Java微服务架构公号作者😄🌹简历模板、学习资料、面试题库、技术互助🌹文末获取联系方式📝往期热门专栏回顾专栏描述Java项目实战介绍Java组件安装、使用;手写框架等Aws服务器实战AwsLinux服务器上操作nginx、git、JDK、VueJava微服务实战Java微服务实战,SpringCloudNetflix套件、SpringCloudAlibaba套件、Seata、gateway、shadingjdbc等实战操作Java基础

Bean named ‘ddlApplicationRunner‘ is expected to be of type ‘org.springframework.boot. Runner‘ 。。。

springboot整合mybatisplus时遇见报错错误信息:Beannamed'ddlApplicationRunner'isexpectedtobeoftype'org.springframework.boot.Runner'butwasactuallyoftype'org.springframework.beans.factory.support.NullBean'atorg.springframework.beans.factory.support.AbstractBeanFactory.adaptBeanInstance(AbstractBeanFactory.java:410)

Bean named‘ddlApplicationRunner‘is expected to be of type ‘org.springframework.boot.Runner‘

1、问题概述?项目中使用springboot3.1.7整合mybatiplus3.5.3.2版本实现操作数据库的时候,springboot整合mybatisplus报错如下:org.springframework.beans.factory.BeanNotOfRequiredTypeException:Beannamed'ddlApplicationRunner'isexpectedtobeoftype'org.springframework.boot.Runner'butwasactuallyoftype'org.springframework.beans.factory.support.N