File tree Expand file tree Collapse file tree
rabbitmq/src/main/java/info/xiaomo/rabbitmq Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import org .springframework .amqp .core .Queue ;
44import org .springframework .boot .SpringApplication ;
55import org .springframework .boot .autoconfigure .EnableAutoConfiguration ;
6+ import org .springframework .boot .autoconfigure .jdbc .DataSourceAutoConfiguration ;
7+ import org .springframework .boot .autoconfigure .orm .jpa .HibernateJpaAutoConfiguration ;
68import org .springframework .context .annotation .Bean ;
79import org .springframework .context .annotation .ComponentScan ;
810import org .springframework .context .annotation .Configuration ;
2325 * Copyright(©) 2015 by xiaomo.
2426 **/
2527@ Configuration
26- @ EnableAutoConfiguration
2728@ ComponentScan ("info.xiaomo" )
2829@ EnableScheduling
30+ @ EnableAutoConfiguration (exclude ={DataSourceAutoConfiguration .class ,HibernateJpaAutoConfiguration .class })
2931public class RabbitMqMain {
3032 public static void main (String [] args ) throws Exception {
3133 SpringApplication .run (RabbitMqMain .class , args );
You can’t perform that action at this time.
0 commit comments