默认是使用tomcat容器的:
web模块排除tomcat依赖:
引入jetty容器:
启动项目看日志(已经成功切换到jetty):
关键是,与tomcat保持一样的配置(一样的配方,不一样的味道):
再整体来看一下:
再比如,切换成undertow容器:
看日志,已经成功切换到undertow了:
a772304419 ©著作权
默认是使用tomcat容器的:
web模块排除tomcat依赖:
引入jetty容器:
启动项目看日志(已经成功切换到jetty):
关键是,与tomcat保持一样的配置(一样的配方,不一样的味道):
再整体来看一下:
再比如,切换成undertow容器:
看日志,已经成功切换到undertow了:
在jar包目录添加一个application.
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M