diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/JmsTemplateAutoConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/JmsTemplateAutoConfiguration.java index 545201ca57..46a387c5a1 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/JmsTemplateAutoConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/JmsTemplateAutoConfiguration.java @@ -33,7 +33,7 @@ import org.springframework.jms.core.JmsTemplate; * @author Greg Turnquist */ @Configuration -@ConditionalOnClass(JmsTemplate.class) +@ConditionalOnClass({ JmsTemplate.class, ConnectionFactory.class }) public class JmsTemplateAutoConfiguration { @Configuration