专业的编程技术博客社区

网站首页 > 博客文章 正文

SpringBoot2.0实战(6)配置Undertow服务器

baijin 2024-10-29 13:07:13 博客文章 12 ℃ 0 评论



本章目标

替换 SpringBoot 的启动服务器 Tomcat 服务器为 Undertow 服务器

操作步骤

添加依赖

引入 Spring Boot Starter 父工程

在引入 spring-boot-starter-web 依赖时,剔除出对 tomcat 的依赖,然后再添加对 undertow 的依赖用于替换 tomcat。

验证结果

启动项目,查看启动日志,可以看到如下两行

源码地址

本章源码 : https://gitee.com/gongm_24/spring-boot-tutorial.git

总结

Undertow 是一个比 Tomcat 性能更好的服务器,这是一个优化项。

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表