Skip to content

Commit

Permalink
feat: Adapt to a new auto configuration in Spring Boot (#14629)
Browse files Browse the repository at this point in the history
Spring Boot introduced a new location for auto configuration entries in spring boot 2.7.0. The new location is META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports. This has until spring boot 3.0.0-M5 worked in parallel with the spring.factories configuration.
The spring.factories support was removed in spring boot 3.0.0-M5 so this move has to be done now in order for the auto configuration to be picked up.

Fixes #14628
  • Loading branch information
aspan committed Sep 28, 2022
1 parent f970961 commit d2a125c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion vaadin-spring/src/main/resources/META-INF/spring.factories
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=com.vaadin.flow.spring.SpringBootAutoConfiguration,com.vaadin.flow.spring.SpringSecurityAutoConfiguration,com.vaadin.flow.spring.VaadinScopesConfig
org.springframework.boot.SpringApplicationRunListener=com.vaadin.flow.spring.DevModeBrowserLauncher
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
com.vaadin.flow.spring.SpringBootAutoConfiguration
com.vaadin.flow.spring.SpringSecurityAutoConfiguration
com.vaadin.flow.spring.VaadinScopesConfig

0 comments on commit d2a125c

Please sign in to comment.