eclipse启动spring boot项目正常,但是放在idea启动时 报错
2019-09-04 17:32:48.500 |-WARN [restartedMain] org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext [98] -| Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
最后确认是idea需要勾上 "include dependencies with "Privided" scope" 选项
\
然后启动正常!