Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.


背景:最近在学习springboot 整合定时任务的时候,出现了缺少“ServletWebServerFactory bean ”的错误。

 

问题描述: 在启动类上有有配置@SpringBootApplication,但是在调用的Service服务上面没有配置@EnableAutoConfiguration。

有关注解的解释:https://blog.csdn.net/weixin_40753536/article/details/81285046

解决方法:配置@EnableAutoConfiguration


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM