使用dubbo最新版的几个问题

KeeperErrorCode = Unimplemented for /service

如果你使用的是spring cloud-alibaba 2.1以上的版本出现这个问题。那么需要升级zookeeper版本。一般来说之前最常用的3.4.13这个版本已经不适用了。需要更换到3.5及以上的版本

Springcloud aliababa无法连接上zookeeper出现java.net.ConnectException: Connection refused (Connection refused)

需要将zookeeper的地址配置为局域网的地址,并且限定选择具体的ip段

dubbo:
  protocol:
    name: dubbo
    host: 172.18.18.95 #指定好当前本机 ip 地址
spring:
  cloud:
    inetutils:
      preferred-networks: 172 #限定选择前缀为 172 的 ip

具体参考配置https://www.cnblogs.com/liang1101/p/12702631.html

SpringBoot启动报错:LoggerFactory is not a Logback LoggerContext but Logback is on the classpath

一般来说这种冲突是与其他的jar包依赖的日志组件冲突的情况。排除掉springboot里的日志就行了

<dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-web</artifactId>
      <exclusions>
           <exclusion>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-log4j12</artifactId>
           </exclusion>
      </exclusions>
 </dependency>

<dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-web</artifactId>
         <exclusions>
                 <exclusion>
                     <groupId>ch.qos.logback</groupId>
                    <artifactId>logback-classic</artifactId>
                 </exclusion>
            </exclusions>
 </dependency>

欢迎搜索关注本人与朋友共同开发的微信面经小程序【大厂面试助手】和公众号【微瞰技术】

file
file

posted @ 2020-12-09 10:17  镇屌  阅读(418)  评论(0编辑  收藏  举报