Disabling Spring JMS Auto configuration in Spring Boot Application
FYI, use this to disable ActiveMQ
@SpringBootApplication(exclude = ActiveMQAutoConfiguration.class)
if want to control it via the properties (in this case a application.yml) then you can do something like this.
spring:
autoconfigure:
exclude: org.springframework.boot.autoconfigure.jms.JmsAutoConfiguration
You can add the auto configurations, which you want to disable, to the SpringBootApplication annotation:
@SpringBootApplication(exclude = JmsAutoConfiguration.class)