简体   繁体   English

Spring Boot:由于缺少 EmbeddedServletContainerFactory bean 无法启动 EmbeddedWebApplicationContext

[英]Spring Boot: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean

I am totally new to Spring and started to do the official guides from this site: https://spring.io/guides我对 Spring 完全陌生,并开始从这个网站做官方指南: https : //spring.io/guides

I'd like to do this guide: https://spring.io/guides/gs/scheduling-tasks/我想做这个指南: https : //spring.io/guides/gs/scheduling-tasks/

I get the following Exception:我收到以下异常:

2014-02-14 16:25:21.614  INFO 9032 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.scheduling.annotation.SchedulingConfiguration' of type [class org.springframework.scheduling.annotation.SchedulingConfiguration$$EnhancerByCGLIB$$5b48d763] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2014-02-14 16:25:21.638  INFO 9032 --- [           main] .c.l.ClasspathLoggingApplicationListener : Application failed to start with classpath: [file:/C:/work/Spring/SpringTutorial/target/classes/, file:/C:/work/apache-maven-3.0.3/repo/javax/servlet/javax.servlet-api/3.0.1/javax.servlet-api-3.0.1.jar, file:/C:/work/apache-maven-3.0.3/repo/org/springframework/boot/spring-boot-starter/1.0.0.RC1/spring-boot-starter-1.0.0.RC1.jar, file:/C:/work/apache-maven-3.0.3/repo/org/springframework/boot/spring-boot/1.0.0.RC1/spring-boot-1.0.0.RC1.jar, file:/C:/work/apache-maven-3.0.3/repo/org/springframework/spring-core/4.0.0.RELEASE/spring-core-4.0.0.RELEASE.jar, file:/C:/work/apache-maven-3.0.3/repo/org/springframework/spring-context/4.0.0.RELEASE/spring-context-4.0.0.RELEASE.jar, file:/C:/work/apache-maven-3.0.3/repo/org/springframework/boot/spring-boot-autoconfigure/1.0.0.RC1/spring-boot-autoconfigure-1.0.0.RC1.jar, file:/C:/work/apache-maven-3.0.3/repo/org/springframework/boot/spring-boot-starter-logging/1.0.0.RC1/spring-boot-starter-logging-1.0.0.RC1.jar, file:/C:/work/apache-maven-3.0.3/repo/org/slf4j/jcl-over-slf4j/1.7.5/jcl-over-slf4j-1.7.5.jar, file:/C:/work/apache-maven-3.0.3/repo/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar, file:/C:/work/apache-maven-3.0.3/repo/org/slf4j/jul-to-slf4j/1.7.5/jul-to-slf4j-1.7.5.jar, file:/C:/work/apache-maven-3.0.3/repo/org/slf4j/log4j-over-slf4j/1.7.5/log4j-over-slf4j-1.7.5.jar, file:/C:/work/apache-maven-3.0.3/repo/ch/qos/logback/logback-classic/1.0.13/logback-classic-1.0.13.jar, file:/C:/work/apache-maven-3.0.3/repo/ch/qos/logback/logback-core/1.0.13/logback-core-1.0.13.jar, file:/C:/work/apache-maven-3.0.3/repo/org/springframework/boot/spring-boot-starter-web/1.0.0.RC1/spring-boot-starter-web-1.0.0.RC1.jar, file:/C:/work/apache-maven-3.0.3/repo/org/springframework/boot/spring-boot-starter-tomcat/1.0.0.RC1/spring-boot-starter-tomcat-1.0.0.RC1.jar, file:/C:/work/apache-maven-3.0.3/repo/org/apache/tomcat/embed/tomcat-embed-core/7.0.47/tomcat-embed-core-7.0.47.jar, file:/C:/work/apache-maven-3.0.3/repo/org/apache/tomcat/embed/tomcat-embed-logging-juli/7.0.47/tomcat-embed-logging-juli-7.0.47.jar, file:/C:/work/apache-maven-3.0.3/repo/org/springframework/spring-web/4.0.0.RELEASE/spring-web-4.0.0.RELEASE.jar, file:/C:/work/apache-maven-3.0.3/repo/aopalliance/aopalliance/1.0/aopalliance-1.0.jar, file:/C:/work/apache-maven-3.0.3/repo/org/springframework/spring-aop/4.0.0.RELEASE/spring-aop-4.0.0.RELEASE.jar, file:/C:/work/apache-maven-3.0.3/repo/org/springframework/spring-beans/4.0.0.RELEASE/spring-beans-4.0.0.RELEASE.jar, file:/C:/work/apache-maven-3.0.3/repo/org/springframework/spring-webmvc/4.0.0.RELEASE/spring-webmvc-4.0.0.RELEASE.jar, file:/C:/work/apache-maven-3.0.3/repo/org/springframework/spring-expression/4.0.0.RELEASE/spring-expression-4.0.0.RELEASE.jar, file:/C:/work/apache-maven-3.0.3/repo/com/fasterxml/jackson/core/jackson-databind/2.3.1/jackson-databind-2.3.1.jar, file:/C:/work/apache-maven-3.0.3/repo/com/fasterxml/jackson/core/jackson-annotations/2.3.0/jackson-annotations-2.3.0.jar, file:/C:/work/apache-maven-3.0.3/repo/com/fasterxml/jackson/core/jackson-core/2.3.1/jackson-core-2.3.1.jar, file:/C:/work/apache-maven-3.0.3/repo/commons-lang/commons-lang/2.2/commons-lang-2.2.jar]
Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:140)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:476)
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:124)
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:658)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:355)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:920)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:909)
    at hu.kumite.Application.main(Application.java:17)
Caused by: org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.getEmbeddedServletContainerFactory(EmbeddedWebApplicationContext.java:190)
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:163)
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:137)
    ... 7 more

The application starter class is this:应用程序入门类是这样的:

@ComponentScan
@EnableAutoConfiguration
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(ScheduledTasks.class, args);
    }
}

As you can see, the main method contains a commented line.如您所见,main 方法包含一个注释行。 I've already done a tutorial, namely this one: https://spring.io/guides/gs/consuming-rest/ It's up and running.我已经完成了一个教程,即这个: https : //spring.io/guides/gs/sumption-rest/它已启动并运行。 But I can't run the ScheduledTasks app, which is the following:但我无法运行 ScheduledTasks 应用程序,如下所示:

@EnableScheduling
public class ScheduledTasks {

    private static final SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm:ss");

    @Scheduled(fixedRate = 5000)
    public void reportCurrentTime() {
        System.out.println("The time is now " + dateFormat.format(new Date()));
    }
}

I use Eclipse and run the Application.java's main as an Application.我使用 Eclipse 并将 Application.java 的 main 作为应用程序运行。 Could someone please help me?有人可以帮我吗?

The scheduling guide isn't a web app so you probably have some mouldy stuff in your pom.xml from the REST guide?调度指南不是一个网络应用程序,所以你的 pom.xml 中可能有一些来自 REST 指南的发霉的东西? If you follow the instructions closely it should work.如果您严格按照说明操作,它应该可以工作。 Another potential issue with the code you posted above is that your @EnableAutoConfiguration class is not used in the context, only as a main method (which may not be a problem for the scheduling guide but it probably is for a bunch of others).您上面发布的代码的另一个潜在问题是您的@EnableAutoConfiguration类未在上下文中使用,仅用作主要方法(这可能不是调度指南的问题,但可能是其他一些问题)。

A scan of the @SpringBootApplication show that it includes the following annotations: @SpringBootApplication的扫描显示它包含以下注释:

@Configuration
@ComponentScan
@EnableAutoConfiguration

So you could do this too:所以你也可以这样做:

@SpringBootApplication
public class Application {
    public static void main(String[] args) {
       SpringApplication.run(ScheduledTasks.class, args);
    }
}

use this one in your pom.xml :在你的 pom.xml 中使用这个:

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

or this one :或者这个:

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

I had multiple application classes in one Spring Boot project which had the web started included and wanted to avoid it configuring a web environment for one of them so I manually configured it as below:我在一个包含 Web 启动的 Spring Boot 项目中有多个应用程序类,并希望避免为其中之一配置 Web 环境,因此我手动将其配置如下:

@SpringBootApplication
public class Application
{
    public static void main(String[] args)
    {
        new SpringApplicationBuilder(Application.class)
            .web(false)
            .run(args);
    }
}

UPDATE for Spring Boot 2 and above: UPDATE春季启动2及以上:

@SpringBootApplication
public class Application
{
    public static void main(String[] args)
    {
        new SpringApplicationBuilder(Application.class)
            .web(WebApplicationType.NONE)
            .run(args);
    }
}

Try this尝试这个

@Configuration
@ComponentScan
@EnableAutoConfiguration
public class Application {
    public static void main(String[] args) {
       SpringApplication.run(ScheduledTasks.class, args);
    }
}

The error suggests that the application you are trying to run cannot instantiate an instance of apache tomcat.该错误表明您尝试运行的应用程序无法实例化 apache tomcat 的实例。 Make sure you are running the application with tomcat.确保您正在使用 tomcat 运行应用程序。

if after checking all your dependencies you experience the same problem, try to add the following in your configuration class如果在检查完所有依赖项后遇到同样的问题,请尝试在配置类中添加以下内容

@Bean
public EmbeddedServletContainerFactory servletContainer() {
    TomcatEmbeddedServletContainerFactory factory = 
                  new TomcatEmbeddedServletContainerFactory();
    return factory;
 }

If you are using an external instance of tomcat (especially for intellij), the problem could be that the IDE is trying to start the embedded tomcat.如果您使用的是 tomcat 的外部实例(特别是对于 intellij),则问题可能是 IDE 正在尝试启动嵌入式 tomcat。 In this case, remove the following from your pom.xml then configure the external tomcat using the 'Edit Configurations' wizard.在这种情况下,从 pom.xml 中删除以下内容,然后使用“编辑配置”向导配置外部 tomcat。

<dependency>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-starter-tomcat</artifactId>
     <scope>provided</scope>
</dependency> 

Add添加

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

if you experience this exception while using intellij and you are trying to start the application with the run button.如果您在使用 intellij 时遇到此异常,并且您正在尝试使用run按钮启动应用程序。 Try starting the application from the command line instead.尝试从命令行启动应用程序。 Eg ensure that you are in the correct directory (directory with your pom file) assuming this is a springboot application run mvn spring-boot:run this did the trick for me.例如,假设这是一个springboot应用程序,请确保您位于正确的目录中(包含 pom 文件的目录) run mvn spring-boot:run这对我有用。

Additionally I have also seen this error occur when your spring application depends on another application.此外,我还看到当您的 spring 应用程序依赖于另一个应用程序时会发生此错误。 In this case I had to start the other application first then run.在这种情况下,我必须先启动另一个应用程序,然后再运行。

Adding the annotation @SpringBootApplication Before the starter class fixed this problem for me (so in essence, this error message can mean "you don't have a @SpringBootApplication marked class anywhere, you need at least one)添加注解@SpringBootApplication在入门类为我解决这个问题之前(所以本质上,这个错误信息可能意味着“你没有一个@SpringBootApplication标记的类,你至少需要一个)

@SpringBootApplication
public class AppStarter {

    public static void main(String[] args) {
        SpringApplication.run(AppStarter.class, args);
    }
}

I've had similar problems when the main method is on a different class than that passed to SpringApplcation.run()当 main 方法位于与传递给 SpringApplcation.run() 的类不同的类上时,我遇到了类似的问题

So the solution would be to use the line you've commented out:因此,解决方案是使用您注释掉的行:

public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}

If you package it as a single jar and it's non web app try to load app context as below.如果您将其打包为单个 jar 并且它不是 Web 应用程序,请尝试加载应用程序上下文,如下所示。

@SpringBootApplication

ApplicationContext ctx = new AnnotationConfigApplicationContext(Main.class);

Or use below plugin to package as a single jar或使用以下插件打包为单个 jar

             <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

you can specify the external configs by using below command to run您可以使用以下命令指定外部配置来运行

java -jar myproject.jar --spring.config.location=classpath:/default.properties,classpath:/override.properties

/ http://docs.spring.io/spring-boot/docs/current/reference/htmlboot-features-external-config.html#boot-features-external-config-application-property-files / http://docs.spring.io/spring-boot/docs/current/reference/htmlboot-features-external-config.html#boot-features-external-config-application-property-files

Note that if you are passing the properties as arguments then don't include @PropertySource("classpath:test.properties") it will override the parameters请注意,如果您将属性作为参数传递,则不要包含@PropertySource("classpath:test.properties")它将覆盖参数

If you run it successfully using command line gradle bootRun , while packaging it with command line gradle jar to jar file in order to run it with command line java -jar build/libs/demo.jar , unfortunately, it failed with Exception: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean , in this case, you need to use task bootRepackage of gradle plugin spring-boot to generate special runnable jar.如果您使用命令行gradle bootRun成功运行它,同时使用命令行gradle jargradle jar到 jar 文件以便使用命令行java -jar build/libs/demo.jar运行它,不幸的是,它失败并出现异常: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean ,在这种情况下,您需要使用 gradle 插件spring-boot任务bootRepackage来生成特殊的可运行 jar。

  • setup 1设置 1

    $ gradle clean bootRepackage $ gradle clean boot重新打包

  • setup 2设置 2

    $ java -jar build/libs/demo.jar $ java -jar build/libs/demo.jar

A SpringApplication will attempt to create the right type of ApplicationContext on your behalf. SpringApplication将尝试代表您创建正确类型的ApplicationContext By default, an AnnotationConfigApplicationContext or AnnotationConfigEmbeddedWebApplicationContext will be used, depending on whether you are developing a web application or not.默认情况下,将使用AnnotationConfigApplicationContextAnnotationConfigEmbeddedWebApplicationContext ,具体取决于您是否正在开发 Web 应用程序。

The algorithm used to determine a 'web environment' is fairly simplistic (based on the presence of a few classes).用于确定“网络环境”的算法相当简单(基于几个类的存在)。 You can use setWebEnvironment(boolean webEnvironment) if you need to override the default.如果需要覆盖默认setWebEnvironment(boolean webEnvironment)可以使用setWebEnvironment(boolean webEnvironment)

It is also possible to take complete control of the ApplicationContext type that will be used by calling setApplicationContextClass(…​) .也可以通过调用setApplicationContextClass(…​)来完全控制将使用的ApplicationContext类型。

[Tip] It is often desirable to call setWebEnvironment(false) when using SpringApplication within a JUnit test. [提示] 在 JUnit 测试中使用SpringApplication时,通常需要调用setWebEnvironment(false)

Adding the spring boot starter dependency fixed my error.添加 spring boot starter 依赖项修复了我的错误。

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

This is required if you want to start the tomcat as an embeded server.如果您想将 tomcat 作为嵌入式服务器启动,这是必需的。

check your pom.xml is exists检查您的 pom.xml 是否存在

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

I've had a problem like this;For lack this dependency我遇到过这样的问题;因为缺少这种依赖

In my case we added the @Profile annotation newly in order to ignore the TestApplication class in production mode and the Application class in test mode.在我的例子中,我们新添加了 @Profile 注释,以便忽略生产模式下的 TestApplication 类和测试模式下的 Application 类。

Unfortunately, we forgot to add the following line into the application.properties files:不幸的是,我们忘记将以下行添加到 application.properties 文件中:

spring.profiles.active=test
or
spring.profiles.active=production

Without these config no profile was loaded which caused the not-so-much saying Spring Error.如果没有这些配置,就不会加载配置文件,这会导致不太常见的 Spring 错误。

这应该是依赖问题导致的,一般情况下需要检查依赖。

The problem it's in this class:这个类的问题是:

@ComponentScan
@EnableAutoConfiguration
public class Application {
    public static void main(String[] args) {
    //SpringApplication.run(Application.class, args);
    SpringApplication.run(ScheduledTasks.class, args);
    }
}

The correct way to launch your application is:启动应用程序的正确方法是:

@SpringBootApplication
@EnableScheduling
public class Application {
    public static void main(String[] args) {
    SpringApplication.run(Application.class, args);
    }
}

Clear repository is one possible solution.清除存储库是一种可能的解决方案。

Windows -> delete all subfolders in the maven repository: Windows -> 删除 maven 存储库中的所有子文件夹:

C:\\Users\\YourUserName.m2\\repository C:\\Users\\YourUserName.m2\\repository

I have stuck with same problem.我遇到了同样的问题。 As I didn't define Main.class and the following annotations in Spring-Boot using Maven:因为我没有使用 Maven 在 Spring-Boot 中定义 Main.class 和以下注释:

@SpringBootApplication
public class Main {
    public static void main(String args[]){
        SpringApplication.run(Main.class, args);
    }
}

Probably you missing @SpringBootApplication in your spring boot starter class.可能您在 Spring Boot 入门课程中缺少@SpringBootApplication

@SpringBootApplication
public class LoginSecurityAppApplication {

    public static void main(String[] args) {
        SpringApplication.run(LoginSecurityAppApplication.class, args);
    }

}

Problem is exclusion of starter tomcat, I tried exclude it and use vert.x, so when I integrate wit Spring Admin, started problems问题是排除starter tomcat,我尝试排除它并使用vert.x,所以当我与Spring Admin集成时,开始出现问题

<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>

I had this Exception in the following situation.我在以下情况下有此异常。

in my POM was properties:在我的 POM 中是属性:

<properties>
    <java.version>1.8</java.version>
    <!-- The main class to start by executing java -jar -->
    <start-class>com.scmaer.java.microservice.Application</start-class>
    <cxf.version>3.1.5</cxf.version>
    <olingo.version>2.0.10</olingo.version>
    <spring.boot.version>1.4.7.RELEASE</spring.boot.version>
    <spring.boot.plugin.version>1.5.8.RELEASE</spring.boot.plugin.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <skipTests>false</skipTests>
</properties>

and the name and path of my application class ("start-class") was wrong.并且我的应用程序类(“start-class”)的名称和路径是错误的。

I had a similar issue and the problem was a broken maven repo jar file.我有一个类似的问题,问题是一个损坏的 maven repo jar 文件。 In my case, the tomcat-embed-core jar file was broken.就我而言, tomcat-embed-core jar 文件已损坏。 So I removed it from the maven repo and refreshed it to download again.所以我从 maven repo 中删除了它并刷新它以再次下载。

In my case it happen after excluding the resource folder from the pom using the following code.在我的情况下,它发生在使用以下代码从pom排除资源文件夹之后。

<resources>
        <resource>
            <directory>src/main/resources</directory>
            <filtering>true</filtering>
            <excludes>
                <exclude>*/*.properties</exclude>
            </excludes>
        </resource>
</resources>

Commenting this code started my code.注释此代码开始了我的代码。

此问题的另一个原因是 maven 存储库 jar 损坏,因此您可以使用以下命令来解决问题:

mvn dependency:purge-local-repository

I am using gradle, met seem issue when I have a commandLineRunner consumes kafka topics and a health check endpoint for receiving incoming hooks.我正在使用 gradle,当我有一个 commandLineRunner 使用 kafka 主题和一个用于接收传入钩子的健康检查端点时遇到了问题。 I spent 12 hours to figure out, finally found that I used mybatis-spring-boot-starter with spring-boot-starter-web, and they have some conflicts.花了12个小时摸索,终于发现我用的是mybatis-spring-boot-starter和spring-boot-starter-web,它们有一些冲突。 Latter I directly introduced mybatis-spring, mybatis and spring-jdbc rather than the mybatis-spring-boot-starter, and the program worked well.后来我直接引入了mybatis-spring、mybatis和spring-jdbc而不是mybatis-spring-boot-starter,程序运行良好。

hope this helps希望这可以帮助

In my case, spring configurations were not loaded as expected.就我而言,弹簧配置未按预期加载。 On running from cmd using below command, it worked:使用以下命令从 cmd 运行时,它起作用了:

start java -Xms512m -Xmx1024m <and the usual parameters as needed, like PrintGC etc> -Dspring.config.location=<propertiesfiles> -jar <jar>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 由于缺少 EmbeddedServletContainerFactory bean,Spring Boot 无法启动 EmbeddedWebApplicationContext - Spring Boot Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean Spring boot -- 由于缺少 EmbeddedServletContainerFactory bean 无法启动 EmbeddedWebApplicationContext - Spring boot -- Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean 由于缺少EmbeddedServletContainerFactory bean,无法启动EmbeddedWebApplicationContext - Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean 带Web套接字的Spring Boot微服务:由于缺少EmbeddedServletContainerFactory bean而无法启动EmbeddedWebApplicationContext - Spring Boot Microservice w/ Web Sockets: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean 错误:由于缺少EmbeddedServletContainerFactory bean而无法启动EmbeddedWebApplicationContext - Error : Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean Springboot可执行JAR-错误:由于缺少EmbeddedServletContainerFactory bean而无法启动EmbeddedWebApplicationContext - Springboot Executable JAR - Error: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean Spring Boot异常-由于缺少EmbeddedServletContainerFactory bean - Spring boot exception - due to missing EmbeddedServletContainerFactory bean 由于缺少EmbeddedServletContainerFactory bean,Spring Application无法启动 - Spring Application doesn't start due to missing EmbeddedServletContainerFactory bean Jetty 9 + Spring 引导 - 由于缺少 ServletWebServerFactory bean,无法启动 ServletWebServerApplicationContext - Jetty 9 + Spring Boot - Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean spring-boot web 应用程序启动失败:由于缺少 ServletWebServerFactory bean,无法启动 ServletWebServerApplicationContext - spring-boot web app fails to start : Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM