1. 程式人生 > >Spring Boot 啟動報錯Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFa

Spring Boot 啟動報錯Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFa

在配置SpringBoot的時候 啟動的時候報錯 Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
解決方法  在啟動類加上
@SpringBootApplication  註解 

即可完美解決