本地啓動出錯Unable to start ServletWebServerApplicationContext due to miss ServletWebServerFactory bean

Springboot項目打包成war上傳到雲服務器後,本地啓動出錯。 首先,我們去除爲了上傳雲服務器所添加的步驟,詳細見我的另一篇文章Springboot項目部署到阿里雲服務器(war和jar) 然後,依然出錯,在StackOverFlow上,有人說 在啓動類上加上缺少@SpringBootApplication標註,或者是Spring bean缺少@EnableAutoConfiguration
相關文章
相關標籤/搜索