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/liang...
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>
欢送搜寻关注自己与敌人共同开发的微信面经小程序【大厂面试助手】和公众号【微瞰技术】