spring boot 2.4.6中:spring:profiles:active :test,nacos and spring:profiles:active: - prodall group:prodall: - nacos- dev 。 These two writing methods result in no message being typed on the console 微信图片_20210827144238

Comment From: scottfrederick

@wanghwtaiji Thanks for getting in touch, but there is not enough information provided for us to tell what the problem is. If you would like us to spend some time investigating, please provide a complete minimal sample that reproduces the problem. You can share it with us by pushing it to a separate repository on GitHub or by zipping it and attaching it to this issue.

Comment From: wanghwtaiji

https://github.com/wanghwtaiji/springboot-nacos

Zip and RAR cannot be uploaded. You need a Nacos or Consul; It is best to nacos

Comment From: philwebb

It's still not clear what issue you're reporting and if it's an issue with Spring Boot, Spring Cloud or some other library. Can you please explain the steps necessary to replicate the problem with the sample and what you mean by "These two writing methods result in no message being typed on the console"?

Comment From: wanghwtaiji

This project is registered in NACOS, and there is a corresponding configuration file in the NACOS configuration center. The 'Spring: Profiles: Active: Test, NACOS' I set is ok in 2.3.x, but when using 2.4.x, the console cannot output information, as shown in the picture above. But if I configure two 'Spring: Profiles :active :test' and' Spring: Profiles :active :nacos', I can print messages again.

Comment From: philwebb

This is probably related to configuration processing updates that we made in Spring Boot 2.4 (see the release notes). I'm not familiar enough with NACOS, but I suspect they might need to make some changes in order to support Spring Boot 2.4. See https://github.com/spring-cloud/spring-cloud-config/pull/1656 for a similar update that was made to Spring Cloud Config Server.

For now, you might want to try setting spring.config.use-legacy-processing to true as described in https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-Config-Data-Migration-Guide.