1. 程式人生 > 實用技巧 >Vue | Router 基於Element-admin動態路由選單下預設引數

Vue | Router 基於Element-admin動態路由選單下預設引數

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