java web 不用tomcat_有哪些不需要Tomcat服务器,jar包自带服务器,纯Java实现的web框架?...

现在的容器都支持embedded模式,Spring Boot就是利用这种模式。

Spring Boot支持embedded容器包括:

Tomcat, Jetty or Undertow

Spring Boot项目首页的内容:

FeaturesCreate stand-alone Spring applications

Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files)

Provide opinionated 'starter' POMs to simplify your Maven configuration

Automatically configure Spring whenever possible

Provide production-ready features such as metrics, health checks and externalized configuration

Absolutely no code generation and no requirement for XML configuration

文档里对embedded的具体说明:Spring Boot includes support for embeddedTomcat,Jetty, andUndertowservers. Most developers use the appropriate “Starter” to obtain a fully configured instance. By default, the embedded server listens for HTTP requests on port8080.

我查了一下你说的

2.0.1又用了Netty

然后再看一下这里的讨论:和springmvc相比有什么比较 突出 的优点啊?底层通讯必须用netty? · Issue #143 · lets-blade/blade​github.com9d9febdcc5a754bf4812431a1924e78a.png

Undertow从一开始就被设计成embeded。

官网首页:Undertow is designed to be fully embeddable, with easy to use fluent builder APIs. Undertow’s lifecycle is completely controlled by the embedding application.

推荐你另外一个项目JHipster,是基于Spring Boot和Spring Cloud的,默认内置Undertow。可以关注我的文章:陈龙:用JHipster做Java Web全栈开发​zhuanlan.zhihu.comfdfb2a496a64aed2b1af1df576042376.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值