更新时间:2021-09-22 16:52:05
好的,所以我在殴打我对此有所了解......我有以下内容:
Ok, So i was beating my head over this... I had the following:
/**
* Main class.
*/
@SpringBootApplication
public class Application {
/**
* Main entry point for the application.
*
* @param args The args to pass in
*/
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
我所有的依赖都是正确的..
and all my dependencies were correct..
经过详尽的搜索后,我发现了以下内容:
After an exhausive search, i found the following:
因为我没有弹簧启动父亲作为我的父,我必须在我的插件配置中包含执行部分,如下所示:
Since i dont have the spring boot parent as my parent, I had to include the executions section in my plugin configuration like so:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>your.Application.fqdn.here</mainClass>
<layout>ZIP</layout>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
有关其他信息,请参阅以下内容:
See the following for additional info:
http:// docs。 spring.io/spring-boot/docs/1.4.0.BUILD-SNAPSHOT/maven-plugin/usage.html
ApplicationContextException:由于缺少ServletWebServerFactory bean而无法启动ServletWebServerApplicationContext
Spring Boot Test失败说,由于缺少ServletWebServerFactory bean而无法启动ServletWebServerApplicationContext
由于缺少 ReactiveWebServerFactory bean,无法启动 ReactiveWebApplicationContext
Spring Boot Web服务器在Eclipse中工作正常,无法在Server上启动:缺少EmbeddedServletContainerFactory bean
由于在 run 方法中加载上下文 xml 时缺少 EmbeddedServletContainerFactory bean,因此无法启动 EmbeddedWebApplicationContext
春季启动测试:由于缺少EmbeddedServletContainerFactory bean,无法启动EmbeddedWebApplicationContext
由于缺少ServletWebServerFactory bean,无法启动ServletWebServerApplicationContext