The change is simple, now we have a flag spring.cloud.consul.config.profileEnabled, and default to true to keep it compatible with the current behavior. When disabled, we will scan less paths on Consul.
P.S. Many of the changes are due to checkstyle, not really related to this change. I have to fix them to make the build pass.
As stated in https://github.com/spring-cloud/spring-cloud-consul/issues/787 we need to mitigate the pressure to Consul, so the change is to add a new flag to get rid of profiles in a large deployment.
The change is simple, now we have a flag
spring.cloud.consul.config.profileEnabled
, and default to true to keep it compatible with the current behavior. When disabled, we will scan less paths on Consul.P.S. Many of the changes are due to checkstyle, not really related to this change. I have to fix them to make the build pass.