Skip to content

GH-1774 | Modernize auto-configuration registration. - #1782

Open
ch200203 wants to merge 1 commit into
spring-projects:mainfrom
ch200203:GH-1774
Open

GH-1774 | Modernize auto-configuration registration.#1782
ch200203 wants to merge 1 commit into
spring-projects:mainfrom
ch200203:GH-1774

Conversation

@ch200203

Copy link
Copy Markdown

Closes #1774.

  • Remove the dead EnableAutoConfiguration entries from spring.factories in spring-modulith-moments (file deleted) and spring-modulith-events-jpa. The EventPublicationConfigurationExtension entry in the latter is kept, as it is still consumed by the EnablePersistentDomainEvents import selector.
  • Switch MomentsAutoConfiguration, ModuleObservabilityAutoConfiguration, SpringDataRestModuleObservabilityAutoConfiguration, and JdbcEventPublicationAutoConfiguration from @Configuration(proxyBeanMethods = false) to @AutoConfiguration, folding the standalone @AutoConfigureBefore on the JDBC one into the annotation's before attribute.

No runtime behavior change intended — all four classes were already registered via AutoConfiguration.imports.

Remove the EnableAutoConfiguration entries from spring.factories files
that are no longer read since Spring Boot 3.0, as the classes are
already registered via AutoConfiguration.imports. Switch the affected
auto-configuration classes from @configuration(proxyBeanMethods = false)
to @autoConfiguration, folding the standalone @AutoConfigureBefore on
JdbcEventPublicationAutoConfiguration into the annotation's before
attribute.

Signed-off-by: Cheolhwan Ihn <ch200203@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Modernize auto-configuration registration in the moments, events, and observability modules

1 participant