(Java之初學篇)SpringBoot啓動Dubbo項目(註冊代理模式!!!)遇到ServletWebServerFactory bean問題解決方案

Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.at   org.springframework.boot.web.servlet.context.

只需要在application.properties文件里加上spring.main.web-application-type=none,如果還不行的話,那就先記得把你的target包刪掉

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章