提交 7847db2a authored 作者: 李秋林's avatar 李秋林

修改dockerfile中的端口配置;修改配置文件格式

上级 760fda63
...@@ -10,4 +10,4 @@ RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shangh ...@@ -10,4 +10,4 @@ RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shangh
ENTRYPOINT ["nohup","java", "-jar", "/promotion/app.jar"] ENTRYPOINT ["nohup","java", "-jar", "/promotion/app.jar"]
CMD ["--spring.profiles.active=live"] CMD ["--spring.profiles.active=live"]
EXPOSE 8011 EXPOSE 8010
...@@ -211,12 +211,22 @@ ...@@ -211,12 +211,22 @@
<artifactId>commons-io</artifactId> <artifactId>commons-io</artifactId>
<groupId>commons-io</groupId> <groupId>commons-io</groupId>
</exclusion> </exclusion>
<exclusion>
<artifactId>guava</artifactId>
<groupId>com.google.guava</groupId>
</exclusion>
</exclusions> </exclusions>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-gateway</artifactId> <artifactId>spring-cloud-starter-gateway</artifactId>
<exclusions>
<exclusion>
<artifactId>bcpkix-jdk15on</artifactId>
<groupId>org.bouncycastle</groupId>
</exclusion>
</exclusions>
</dependency> </dependency>
<!-- gateway 负载均衡--> <!-- gateway 负载均衡-->
......
...@@ -30,6 +30,5 @@ spring: ...@@ -30,6 +30,5 @@ spring:
# uri: http://127.0.0.1:8011 # uri: http://127.0.0.1:8011
predicates: predicates:
- Path=/** - Path=/**
-
logging: logging:
config: classpath:logback-spring.xml config: classpath:logback-spring.xml
\ No newline at end of file
...@@ -26,9 +26,8 @@ spring: ...@@ -26,9 +26,8 @@ spring:
routes: routes:
- id: wangxiaolu-promotion-service - id: wangxiaolu-promotion-service
uri: lb://wangxiaolu-promotion-service uri: lb://wangxiaolu-promotion-service
# uri: http://127.0.0.1:8011 # uri: http://127.0.0.1:8011
predicates: predicates:
- Path=/** - Path=/**
-
logging: logging:
config: classpath:logback-spring.xml config: classpath:logback-spring.xml
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论