This is an automated email from the ASF dual-hosted git repository. Croway pushed a commit to branch ci-issue/fix-circular-dependency-spring-boot-4 in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
commit dd7d79b4632a53a9eb404a6ae62b30989cf3f8fa Author: Croway <[email protected]> AuthorDate: Mon May 4 16:42:56 2026 +0200 ci: revert @Lazy on CamelThreadPoolAutoConfiguration The @Lazy annotation prevented the thread pool from being configured, breaking ThreadPoolConfigurationTest. The bean runs after CamelAutoConfiguration (via @AutoConfiguration(after=...)) so it does not participate in the circular dependency. --- .../camel/spring/boot/threadpool/CamelThreadPoolAutoConfiguration.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/threadpool/CamelThreadPoolAutoConfiguration.java b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/threadpool/CamelThreadPoolAutoConfiguration.java index 58db226c867..1b6b0f528d7 100644 --- a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/threadpool/CamelThreadPoolAutoConfiguration.java +++ b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/threadpool/CamelThreadPoolAutoConfiguration.java @@ -24,14 +24,12 @@ import org.springframework.boot.autoconfigure.AutoConfiguration; import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Lazy; @AutoConfiguration(after = CamelAutoConfiguration.class) @ConditionalOnBean(CamelAutoConfiguration.class) @EnableConfigurationProperties(CamelThreadPoolConfigurationProperties.class) public class CamelThreadPoolAutoConfiguration { - @Lazy @Bean public ThreadPoolProfile threadPool(CamelContext camelContext, CamelThreadPoolConfigurationProperties tp) { if (tp.isEmpty()) {
