1. 创建Dockerfile文件FROM openjdk:8-jdk-alpine VOLUME /tmp ADD eureka-server-0.0.1-SNAPSHOT.jar app.jar RUN sh -c 'touch /app.jar' RUN echo "Asia/Shanghai" > /etc/timezone ENV JAVA_OPTS=&q...
1. 问题由于业务拓展 公司项目迭代到Eureka分布式集群 以应对更多的吞吐量由于节点得向注册中心声明自己的host,每个节点的yml配置文件都不一样 打包发布起来比较麻烦需要一个一劳永逸的方案2. 解决方案2.1 SpringBoot配置文件读取优先级启动参数 -Dspring.config.location=xxxJar包同级目录的config目录Jar包同级目录classPath(即...