Skip to content

Scan annotated configuration class package by default when using @ImportHttpServices without attributes #36669

@scordio

Description

@scordio

Currently, on Spring Framework 7.0.6 and Spring Boot 4.0.5, if I want to register all HTTP Service Clients in a Spring Boot application (in the current package and/or subpackages), I annotate the application class like the following:

@SpringBootApplication
@ImportHttpServices(basePackageClasses =  Application.class)
public class Application {

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}

}

When @ImportHttpServices is declared without additional attributes, would it be possible to scan the package and subpackages of the annotated configuration class by default?

Conceptually similar to how @EnableJpaRepositories works today.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions