如何给springboot切换默认的Tomcat容器
2021-05-12 20:29
阅读:654
标签:rto -- framework clu net 直接 artifact dep containe
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter-tomcat
org.springframework.boot
spring-boot-starter-jetty
org.springframework.boot
spring-boot-starter-webflux
以上依赖就是将默认的tomcat切换为jetty容器
还可以切换为undertow
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter-tomcat
org.springframework.boot
spring-boot-starter-undertow
如果这些容器都不满意 ,还可以切换为Netty
这里不引入starter-web,直接引入starter-webflux
org.springframework.boot
spring-boot-starter-webflux
这里注意spring-boot版本2.x才可以.
如何给springboot切换默认的Tomcat容器
标签:rto -- framework clu net 直接 artifact dep containe
原文地址:https://blog.51cto.com/8745668/2504749
文章来自:搜素材网的编程语言模块,转载请注明文章出处。
文章标题:如何给springboot切换默认的Tomcat容器
文章链接:http://soscw.com/index.php/essay/84844.html
文章标题:如何给springboot切换默认的Tomcat容器
文章链接:http://soscw.com/index.php/essay/84844.html
评论
亲,登录后才可以留言!