Skip to content

[refactoring] Migrate Boot 2 auto-config to Boot  #908

Closed

Description

@BoykoAlex

Boot 2: Configuration beans to scan are listed in spring.factories file under key org.springframework.boot.autoconfigure.EnableAutoConfiguration as classes FQNs separated by commas

Boot 3: spring.factories key org.springframework.boot.autoconfigure.EnableAutoConfiguration is retired. Classes FQNs go into a separate file org.springframework.boot.autoconfigure.AutoConfiguration.imports with each FQN on a new line

This to be implemented in rewrite-spring as a recipe and to be included in the Boot 3 migration aggregate recipe

Activity

  1. BoykoAlex commented on Nov 29, 2022

    @BoykoAlex
    ContributorAuthor

    Looks like Tyler is going to take on this issue in rewrite-spring: openrewrite/rewrite-spring#197

  2. BoykoAlex commented on Dec 6, 2022

    @BoykoAlex
    ContributorAuthor

    The recipe is part of the Boot 3 upgrade in the latest snapshot. Also pushed this: da35dca. Tried the the upgrade to boot 3 with spring.factories with auto-config key. Worked. Extracted the entry into a separate imports file

  3. added this to the 4.17.0.RELEASE milestone on Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions