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

Posted 陈彦斌

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Unable to start web server; nested exception is org.springframework.context.ApplicationContextExcept相关的知识,希望对你有一定的参考价值。

项目报错: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>

以上是关于Unable to start web server; nested exception is org.springframework.context.ApplicationContextExcept的主要内容,如果未能解决你的问题,请参考以下文章

org.springframework.context.ApplicationContextException Unable to start web server报错(已解决)

Tomcat unable to start

已解决:SpringBoot启动报错:Unable to start web server; nested exception is org.springframework.boot.web

SpringBoot - Unable to start ServletWebServerApplicationContext due to missing ServletWeb

boot.web.server.WebServerException: Unable to start embedded Tomcat问题解决

boot.web.server.WebServerException: Unable to start embedded Tomcat问题解决