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

支持修改context-path #290

Merged
merged 1 commit into from
Jul 1, 2023
Merged

支持修改context-path #290

merged 1 commit into from
Jul 1, 2023

Conversation

slatonwu
Copy link
Contributor

修复 #288 问题,经过测试,请合并

@@ -105,7 +106,7 @@ private Properties buildSubNacosProperties(Properties globalProperties,
config.getServerAddr(), config.getNamespace(), config.getEndpoint(),
config.getSecretKey(), config.getAccessKey(), config.getRamRoleName(),
config.getConfigLongPollTimeout(), config.getConfigRetryTime(),
config.getMaxRetry(), config.isEnableRemoteSyncConfig(),
config.getMaxRetry(),null, config.isEnableRemoteSyncConfig(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

null能否换成默认值?

Copy link
Contributor Author

@slatonwu slatonwu Jun 25, 2023

Choose a reason for hiding this comment

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

这里是扩展配置的构建,为null时会默认继承主配置里面的配置项,如果使用默认配置的话会和主配置不一致。当主配置项没有配置context-path时,主配置的context-path就是默认值,扩展配置会同步继承默认配置,所以这个地方是null就可以了

Copy link
Contributor Author

Choose a reason for hiding this comment

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

spring-cloud-alibaba 中context-path配置是可以修改的,希望修改可以被接受

@hujun-w-2 hujun-w-2 merged commit a5ba72a into nacos-group:master Jul 1, 2023
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.

3 participants