目录
区别
对于servlet堆栈应用程序,spring-boot-starter-web通过包含spring-boot-starter-tomcat来包括Tomcat,但是可以改用spring-boot-starter-jetty或spring-boot-starter-undertow。
对于反应堆应用程序,spring-boot-starter-webflux通过包含spring-boot-starter-reactor-netty来包含Reactor Netty,但是我们可以使用spring-boot-starter-tomcat,spring-boot-starter-jetty或spring -boot-starter-undertow代替。
本文探讨了Spring Boot中用于Servlet应用程序的spring-boot-starter-web如何默认包含Tomcat,以及如何可以选择jetty或undertow作为替代。对于反应堆应用程序,spring-boot-starter-webflux依赖于spring-boot-starter-reactor-netty,但同样可以使用其他服务器实现。理解这些差异有助于选择适合的服务器栈。
982

被折叠的 条评论
为什么被折叠?



