背景:最近在學習springboot 整合定時任務的時候,出現了缺少“ServletWebServerFactory bean ”的錯誤。
問題描述: 在啟動類上有有配置@SpringBootApplication,但是在調用的Service服務上面沒有配置@EnableAutoConfiguration。
有關注解的解釋:https://blog.csdn.net/weixin_40753536/article/details/81285046
解決方法:配置@EnableAutoConfiguration

