有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java服务在Consor中注册,但它现在非常关键

我的项目的配置是: spring cloud dependencies是Dalston。释放 springboot是1.5.8。释放 依赖项包括:

        <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-consul-discovery</artifactId>
    </dependency>

代码如下:

@SpringBootApplication
@EnableDiscoveryClient
@RestController
public class DemoApplication {

public static void main(String[] args) {
    SpringApplication.run(DemoApplication.class, args);
}

@GetMapping("/test/getId")
public String getId(@RequestParam("id") String id){

    return "return the id is:"+id;
}
}

领事正在运行(concur.exe agent-dev),运行项目时,领事会显示以下日志:

    2018/08/09 15:49:59 [WARN] agent: Check "service:mdp-service-release-flatform-provider-cache-redis-dev-dev-9098" is now critical

我不能使用提供商,怎么了


共 (0) 个答案