spring-cloud / spring-cloud/spring-cloud-netflix

Why isn't spring-cloud-netflix using AutoConfigurationPackages as an input for component scan ?

Open
#2,053 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
5k
Forks
2.5k
Avg merge
1d 2h
Merged PRs (30d)
10

Description

I was hoping to create an spring boot starter having an AutoConfiguration annotated with @EnableFeignClients and naively hoping it would scan automatically packages in my application for @FeignClient annotated classes. While investigating I read a lot of spring-boot/spring-cloud source to understand how these components work/are implemented and found out that spring-cloud was just not using auto configuration packages.

Is there any reason why spring-cloud isn't making use of AutoConfigurationPackages ? Could it be possible to have it implemented ? Thanks for your feedback.

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

Start by tracing how @EnableFeignClients discovers @FeignClient classes and compare that path with Spring Boot's AutoConfigurationPackages behavior. Read the relevant Spring Cloud Netflix and Spring Boot source around these entry points, then determine whether an auto-configuration package can be used without breaking existing package-selection options. Done means the proposed starter behavior is implemented and covered by tests for automatic application-package scanning.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.