spring-cloud / spring-cloud/spring-cloud-commons
Replace @Configuration with @AutoConfiguration for auto-configuration classes
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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