![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springCloud
SincerelyApe
这个作者很懒,什么都没留下…
展开
-
docker部署springBoot项目集群
yml文件server: port: ${eureka.port} #docker run 时用传递环境变量 eureka: server: port: 8761 port2: 8762 port3: 8763 hostname: eureka.com instance: hostname: ${eureka.hostname} clien...原创 2019-01-24 10:40:51 · 1137 阅读 · 0 评论 -
sts创建一个eureka-server注册中心
new spring start projectapplication.ymlserver: port: ${eureka.server.port}eureka: server: port: 8761 hostname: eureka.com instance: hostname: ${eureka.hostname} client: regi...原创 2019-01-23 14:48:30 · 867 阅读 · 0 评论 -
springBoot单项目打成jar包
右击项目Goals: clean package -Dmaven.test.skip=truejar包所在地方原创 2019-01-23 17:13:37 · 244 阅读 · 0 评论 -
将springBoot单项目部署到docker中
项目打jar包https://blog.csdn.net/SincerelyApe/article/details/86614112在linux系统中创建一个文件夹,存放jar和Dockerfile例:eureka-danjiDockerfileFROM java:alpineCOPY . /usr/src/myappWOEKDIR /usr/src/myappCMD ["jav...原创 2019-01-23 17:51:01 · 494 阅读 · 0 评论