nacos-group / nacos-spring-boot-project

Nacos ECO Project for Spring Boot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

缺少context-path参数,当修改context-path后context-path默认值为/nacos,会报403

slatonwu opened this issue · comments

public Properties buildGlobalNacosProperties() {
return NacosPropertiesBuilder.buildNacosProperties(environment,
nacosConfigProperties.getServerAddr(),
nacosConfigProperties.getNamespace(), nacosConfigProperties.getEndpoint(),
nacosConfigProperties.getSecretKey(),
nacosConfigProperties.getAccessKey(),
nacosConfigProperties.getRamRoleName(),
nacosConfigProperties.getConfigLongPollTimeout(),
nacosConfigProperties.getConfigRetryTime(),
nacosConfigProperties.getMaxRetry(),
nacosConfigProperties.isEnableRemoteSyncConfig(),
nacosConfigProperties.getUsername(), nacosConfigProperties.getPassword());
}