如果我想暂停使用项目中的redis;但是不想大段的注释代码,请问有没有办法可以简便的取消redis(比如通过配置文件等).
在启动类上加上:排除需要自动装配对象
@SpringBootApplication(exclude = RedisAutoConfiguration.class)