-
Notifications
You must be signed in to change notification settings - Fork 71
Description
Description
The library currently does not work with Spring Boot 3. The problem is that already in Spring Boot 2.7 there was a change how to load AutoConfiguration, see https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.7-Release-Notes#building-jars-with-maven-shade-plugin-and-gradle-shadow-plugin
Implementation ideas
What we need is a file called org.springframework.boot.autoconfigure.AutoConfiguration.imports inside src/main/resources/META-INF/spring with the following content:
org.quickperf.spring.boot.QuickPerfProxyBeanAutoConfiguration
I see 2 options:
- create a module quick-perf-springboot3-sql-starter
drawback: additional module, code duplication with springboot2
- modify the existing quick-perf-springboot2-sql starter and add the
org.springframework.boot.autoconfigure.AutoConfiguration.importsfile there
drawback: will require at least Spring Boot 2.7
but if you leave the old file as well (spring.factories), all versions (also Spring Boot 3.0) would work, so I'd prefer that option