spring-cloud / spring-cloud/spring-cloud-commons

Replace @Configuration with @AutoConfiguration for auto-configuration classes

Open
#1,640 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

waiting-for-triage
Dominant language
Java
Stars
751
Forks
744
Avg merge
1d 14h
Merged PRs (30d)
9

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the Spring Boot auto-configuration guidance linked in the issue, then inspect auto-configuration classes such as RefreshEndpointAutoConfiguration and identify the broader set using @Configuration(proxyTargetClass = false). Done means determining which classes should use @AutoConfiguration, applying the consistent annotation change, and confirming the existing project checks still pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring, spring-boot
Domain
backend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.