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包刪掉