提交 7fa6b7d1 authored 作者: 000516's avatar 000516 提交者: Coding

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

Merge Request: 修改dockerfile中的端口配置;修改配置文件格式 Created By: @李秋林 Accepted By: @李秋林 URL: https://g-pkkp8204.coding.net/p/promotion/d/promotion-gateway/git/merge/22?initial=true
......@@ -10,4 +10,4 @@ RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shangh
ENTRYPOINT ["nohup","java", "-jar", "/promotion/app.jar"]
CMD ["--spring.profiles.active=live"]
EXPOSE 8011
EXPOSE 8010
......@@ -211,12 +211,22 @@
<artifactId>commons-io</artifactId>
<groupId>commons-io</groupId>
</exclusion>
<exclusion>
<artifactId>guava</artifactId>
<groupId>com.google.guava</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-gateway</artifactId>
<exclusions>
<exclusion>
<artifactId>bcpkix-jdk15on</artifactId>
<groupId>org.bouncycastle</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- gateway 负载均衡-->
......
......@@ -30,6 +30,5 @@ spring:
# uri: http://127.0.0.1:8011
predicates:
- Path=/**
-
logging:
config: classpath:logback-spring.xml
\ No newline at end of file
......@@ -26,9 +26,8 @@ spring:
routes:
- id: wangxiaolu-promotion-service
uri: lb://wangxiaolu-promotion-service
# uri: http://127.0.0.1:8011
# uri: http://127.0.0.1:8011
predicates:
- Path=/**
-
logging:
config: classpath:logback-spring.xml
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论