多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
``` 1. 默认情况下SpringBoot使用Tomcat作为内嵌的Servlet容器 2. Undertow是一个采用java开发的灵活的高性能web服务器,提供包括阻塞和基于NIO的非阻塞机制 3. 将Web服务器更换为Undertow来提高性能 ``` ``` <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> ``` ``` <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-undertow</artifactId> </dependency> ```