背景:最近在学习springboot 整合定时任务的时候,出现了缺少“ServletWebServerFactory bean ”的错误。
问题描述: 在启动类上有有配置@SpringBootApplication,但是在调用的Service服务上面没有配置@EnableAutoConfiguration。
有关注解的解释:https://blog.csdn.net/weixin_40753536/article/details/81285046
解决方法:配置@EnableAutoConfiguration