1.背景
2.实现方式
启动类上添加需要排除的自动装配对象
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class,
RedissonAutoConfiguration.class, RedisAutoConfiguration.class})
启动类上添加需要排除的自动装配对象
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class,
RedissonAutoConfiguration.class, RedisAutoConfiguration.class})