今天跟着一个教程学习如何使用mybatis-plus时,按照步骤走,但报错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'。
教程并没有一步步演示如何搭建后端。我只是新建了一个springboot项目,然后在pom文件中新增了如下依赖:
各种搜索无果后,突发奇想更改版本为3.5.7。不再报错