原 spring boot 网关模块禁止连接数据库和redis
版权声明:本文为博主原创文章,请尊重他人的劳动成果,转载请附上原文出处链接和本声明。
本文链接:https://www.91mszl.com/zhangwuji/article/details/1389
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class, DruidDataSourceAutoConfigure.class, RedisAutoConfiguration.class, RedisRepositoriesAutoConfiguration.class}) // 禁止连接db和redis
public class Gateway_9001 {
public static void main(String[] args) {
SpringApplication.run(Gateway_9001.class, args);
}
}
2022-05-09 12:00:55 阅读(873)
名师出品,必属精品 https://www.91mszl.com