Skip to content

Replace @Configuration with @AutoConfiguration for auto-configuration classes #1640

Description

@mipo256

Quite a lot of auto-configuration classes (like RefreshEndpointAutoConfiguration) in the spring-cloud are annotated with @Configuration(proxyTargetClass = false) instead of @AutoConfiguration which is the default and suggested annotation for auto-configuration classes.

My question is, what is the reason for that? It seems to be more appropriate to align spring-cloud with overall spring-boot auto-configuration guidelines.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions