【发布时间】:2014-08-11 14:35:01
【问题描述】:
我有一个 spring-boot Web 应用程序,但我不想在嵌入式 Tomcat/Jetty 中启动它。禁用嵌入式容器的正确方法是什么?
如果我这样做:
<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>
我一直在努力
org.springframework.context.ApplicationContextException: Unable to start embedded container;
【问题讨论】:
标签: spring-boot