Unable to start web server; nested exception is org.springframework.context.ApplicationContextException


項目報錯:Unable to start web server; nested exception is org.springframework.context.ApplicationContextException

解決方案一

<!-- 使用嵌入式Jetty作為web container -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-starter-tomcat</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

解決方案二

出現了這個異常,
只要再pom文件里加上對應的 container deps: 

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-jetty</artifactId>
</dependency>


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplic Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean. Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean. spring Boot 出現:org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean. SpringBoot集成 Swagger 后,啟動報 org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException nacos啟動報錯 Unable to start web server; nested exception is org.springframework.boot.web.server org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper';問題解決辦法 linux發布springboot org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop'異常解決 nested exception is org.springframework.context.annotation.ConflictingBeanDefinitionException SpringBoot項目 org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Jetty servlet container報錯
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM