Nacos 报错一些问题


今天刚入手 Nacos 遇到很多问题

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-03-25 18:24:56.692 ERROR 14768 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 0 of method ribbonServerList in com.alibaba.cloud.nacos.ribbon.NacosRibbonClientConfiguration required a bean of type 'com.netflix.client.config.IClientConfig' that could not be found.


Action:

Consider defining a bean of type 'com.netflix.client.config.IClientConfig' in your configuration.


Process finished with exit code 1

这里报错信息 缺少

  @Bean
    public IClientConfig iClientConfig() {

        return new DefaultClientConfigImpl();
    }

 加上Bean就好了

-----------------------------------------------------

然而在这之前还有一个问题 一直注册不上:

可以在application.yml  增加配置

spring:
  cloud:
    inetutils:
      timeout-seconds: 10

今天就遇到这两个

相关