Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Kotlin example for @ComponentScan basePackages attribute #28628

Closed
maxbiu opened this issue Jun 15, 2022 · 0 comments
Closed

Fix Kotlin example for @ComponentScan basePackages attribute #28628

maxbiu opened this issue Jun 15, 2022 · 0 comments
Assignees
Labels
theme: kotlin An issue related to Kotlin support type: documentation A documentation task
Milestone

Comments

@maxbiu
Copy link

maxbiu commented Jun 15, 2022

https://docs.spring.io/spring-framework/docs/current/reference/html/core.html#beans-scanning-filters

kotlin to:

@Configuration
@ComponentScan(basePackages = ["org.example"],
        includeFilters = [Filter(type = FilterType.REGEX, pattern = [".*Stub.*Repository"])],
        excludeFilters = [Filter(Repository::class)])
class AppConfig {
    // ...
}
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jun 15, 2022
@sdeleuze sdeleuze added the theme: kotlin An issue related to Kotlin support label Jun 15, 2022
@sdeleuze sdeleuze added this to the 5.3.22 milestone Jun 15, 2022
@sdeleuze sdeleuze added type: documentation A documentation task and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Jun 15, 2022
@sbrannen sbrannen self-assigned this Jun 15, 2022
@sbrannen sbrannen changed the title Fix Kotlin example for basePackages parameter Fix Kotlin example for @ComponentScan basePackages attribute Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: kotlin An issue related to Kotlin support type: documentation A documentation task
Projects
None yet
Development

No branches or pull requests

4 participants