这里是因为引入的依赖中,存在版本冲突,通过maven插件进行依赖分析,可以看到如下信息: 此时需要保证版本一致,我选择的方式是升级spring-boot-starter-web为2.7.18,之后即可启动成功。