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

spring boot 2.7.15通过application.yml配置nacos.config.*不生效 #332

Open
xishian opened this issue May 24, 2024 · 2 comments
Open

Comments

@xishian
Copy link

xishian commented May 24, 2024

启动类

@SpringBootApplication
@NacosPropertySource(dataId = "${spring.application.name}", autoRefreshed = true)
public class MyApplication {

    public static void main(String[] args) {
        SpringApplication.run(MyApplication.class, args);
    }
}

配置文件application.yml

nacos:
  config:
    server-addr: 10.47.181.20:8848
    group: DEV_GROUP

这里配置的group是不会生效的,还是用的默认值DEFAULT_GROUP

如果这是预期的行为,建议从NacosConfigProperties中移除这些不会生效的配置项

@fishandsheep
Copy link

nacos-discovery-spring-boot-starter用的啥版本,我用springboot 2.7.18 + nacos-discovery-spring-boot-starter 0.2.12 没问题

@GabbyMrH
Copy link

我也出现这个问题,我是springboot2.6,单体整合压根不能用,用的是 nacos-config-spring-boot-starter,死活启动不起来

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

No branches or pull requests

3 participants