Bean named‘ddlApplicationRunner‘is expected to be of type ‘org.springframework.boot.Runner‘
1、问题概述?
springboot整合mybatisplus报错啦!解决啦!
提供完整可用的pom.xml配置文件
项目中使用springboot3.1.7整合mybatiplus3.5.3.2版本实现操作数据库的时候,出现如下报错信息
springboot整合mybatisplus报错如下:
org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'ddlApplicationRunner' is expected to be of type 'org.springframework.boot.Runner' but was actually of type 'org.springframework.beans.factory.support.NullBean' at org.springframework.beans.factory.support.AbstractBeanFactory.adaptBeanInstance(AbstractBeanFactory.java:407) ~[spring-beans-6.0.15.jar:6.0.15]at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:388) ~[spring-beans-6.0.15.jar:6.0.15]at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204) ~[sprin