美文网首页JAVA
springboot 使用jetty做web容器

springboot 使用jetty做web容器

作者: jacdNN | 来源:发表于2018-03-22 09:21 被阅读0次

去除springboot 中默认的Tomcat 依赖。
<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>

添加 jetty 依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jetty</artifactId>
</dependency>

相关文章

网友评论

    本文标题:springboot 使用jetty做web容器

    本文链接:https://www.haomeiwen.com/subject/jpvoqftx.html