Skip to content

Inconsistent spring.cloud.util.enabled property #631

Open
@beltram

Description

@beltram

Bug report

Hi, I noticed some inconsistency regarding properties.

Setting spring.cloud.util.enabled: false prevents the application from starting because of SimpleDiscoveryClientAutoConfiguration and later on because of SimpleReactiveDiscoveryClientAutoConfiguration because they require a InetUtils bean provided by UtilAutoConfiguration.

This can be fixed by also disabling those 2 configuration classes by property but it feels a bit strange because they look unrelated to InetUtils.

I wanted to open a PR for this but I was mixed between suppressing the spring.cloud.util.enabled or turning the other 2 ClientDiscovery configuration conditional upon this property.

Thanks in advance for suggestions 😄

  • spring-cloud-commons 2.2.0.RC1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions