由于pom文件中依赖了redis,服务中没用到,微服务健康监控会报redis的错误
在启动类里加
@SpringBootApplication(exclude = RedisAutoConfiguration.class)
@MapperScan("com.news.repthe.*.mapper")
@EnableTransactionManagement
@ComponentScan("com.news")
@EnableDiscoveryClient
public class NewsReptheApplication {
public static void main(String[] args) {
SpringApplication.run(NewsReptheApplication.class, args);
}
}

浙公网安备 33010602011771号