Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sch demo update #95

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

sch demo update #95

wants to merge 1 commit into from

Conversation

lbc97
Copy link

@lbc97 lbc97 commented Feb 14, 2023

No description provided.

@lbc97 lbc97 force-pushed the master branch 2 times, most recently from 78bcb27 to b6a41cb Compare February 14, 2023 09:28
<dependency>
<groupId>org.apache.servicecomb</groupId>
<artifactId>provider-springmvc</artifactId>
<version>2.8.4</version>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete version

Comment on lines -4 to -14
servicecomb:
routeRule:
canary-provider: |
- precedence: 1 #优先级
route: #路由规则
- weight: 80
tags:
version: 0.0.1
- weight: 20
tags:
version: 0.0.2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why delete this ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved the configuration here to bootstrap.yml.

@@ -14,7 +14,7 @@ spring:
# 注册中心地址,本示例使用ServiceStage环境变量。建议保留这种配置方式,部署的时候,不用手工修改地址。
address: ${PAAS_CSE_SC_ENDPOINT:http://127.0.0.1:30100}
# 微服务版本号,本示例使用ServiceStage环境变量。建议保留这种配置方式,部署的时候,不用手工修改版本号,防止契约注册失败。
version: ${CAS_INSTANCE_VERSION:0.0.2}
version: ${CAS_INSTANCE_VERSION:0.0.1}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why change version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants