zzh

zzh

Docker使用自定义镜像开启一个java web服务

web 程序#
  • Controller 类:

image

  • xml 配置文件:

image

自定义 Dockerfile#

image
(注意暴露的端口必须与 xml 配置文件中开放的端口一致)

构建并开启镜像#

image

加载中...
此文章数据所有权由区块链加密技术和智能合约保障仅归创作者所有。