即使我使用tomcat,带有vaadin的Spring Boot也会运行码头 [英] Spring boot with vaadin run jetty even though I use tomcat

查看:130
本文介绍了即使我使用tomcat,带有vaadin的Spring Boot也会运行码头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在Vaadin 7.7.0中使用Spring Boot.默认情况下,如果我未指定,spring boot使用tomcat.但是,我发现有如下日志:

I try to use Spring boot with Vaadin 7.7.0. By default, spring boot use tomcat if I don not specify. However, I found there is a log as below:

2016-08-26 12:08:49.897  INFO 3240 --- [           main] e.j.JettyEmbeddedServletContainerFactory : Server initialized with port: 8080
2016-08-26 12:08:49.900  INFO 3240 --- [           main] org.eclipse.jetty.server.Server          : jetty-8.y.z-SNAPSHOT

我通过日食检查了依存关系,没有码头.

I check the dependency through eclipse and there is no jetty.

这是问题的依赖项

如此强大的版本怎么会出现?

How could a such strong version come?

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-mail</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-configuration-processor</artifactId>
    <optional>true</optional>
</dependency>
<dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-spring-boot-starter</artifactId>
    <version>1.0.0</version>
</dependency>
<dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-client</artifactId>
</dependency>
<dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-client-compiler</artifactId>
    <scope>provided</scope>
</dependency>
<dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-push</artifactId>
</dependency>

通过移除检查后,我发现错误的码头来自

After checking by remove I found that the wrong jetty comes from

<dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-client-compiler</artifactId>
    <scope>provided</scope>
</dependency>

删除后可以添加

<dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>javax.servlet-api</artifactId>
    <scope>provided</scope>
</dependency>

一切正常.

我不知道这个包裹怎么了.有依赖性冲突吗?

I don't know what happened to this package. Is it any dependency conflict?

推荐答案

Jetty用于Vaadin的Push功能,并且已经包括在内.

Jetty is used for the Push feature of Vaadin and is already included.

这篇关于即使我使用tomcat,带有vaadin的Spring Boot也会运行码头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆