Skip to content

Commit

Permalink
replace zookeeper with nacos
Browse files Browse the repository at this point in the history
  • Loading branch information
heliang666s committed Aug 14, 2024
1 parent 60c88b6 commit 0604694
Show file tree
Hide file tree
Showing 27 changed files with 76 additions and 39 deletions.
9 changes: 7 additions & 2 deletions online_bontique_demo/adService/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,16 @@
<version>1.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>

<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-dependencies-zookeeper-curator5</artifactId>
<type>pom</type>
<artifactId>dubbo-nacos-spring-boot-starter</artifactId>
</dependency>

</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dubbo:
qos-enable: false
check-serializable: false
registry:
address: zookeeper://${zookeeper.address:127.0.0.1}:2181
address: nacos://${nacos.address:127.0.0.1}:8848
protocol:
port: 20880
name: tri
9 changes: 7 additions & 2 deletions online_bontique_demo/cartService/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,16 @@
<version>1.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>

<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-dependencies-zookeeper-curator5</artifactId>
<type>pom</type>
<artifactId>dubbo-nacos-spring-boot-starter</artifactId>
</dependency>

</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dubbo:
qos-enable: false
check-serializable: false
registry:
address: zookeeper://${zookeeper.address:127.0.0.1}:2181
address: nacos://${nacos.address:127.0.0.1}:8848
protocol:
port: 20881
name: tri
8 changes: 6 additions & 2 deletions online_bontique_demo/checkoutService/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@
<version>1.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>

<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-dependencies-zookeeper-curator5</artifactId>
<type>pom</type>
<artifactId>dubbo-nacos-spring-boot-starter</artifactId>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dubbo:
qos-enable: false
check-serializable: false
registry:
address: zookeeper://${zookeeper.address:127.0.0.1}:2181
address: nacos://${nacos.address:127.0.0.1}:8848
protocol:
port: 20882
name: tri
2 changes: 0 additions & 2 deletions online_bontique_demo/common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId>
</dependency>


</dependencies>

</project>
9 changes: 7 additions & 2 deletions online_bontique_demo/currencyService/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,16 @@
<version>1.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>

<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-dependencies-zookeeper-curator5</artifactId>
<type>pom</type>
<artifactId>dubbo-nacos-spring-boot-starter</artifactId>
</dependency>

</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dubbo:
qos-enable: false
check-serializable: false
registry:
address: zookeeper://${zookeeper.address:127.0.0.1}:2181
address: nacos://${nacos.address:127.0.0.1}:8848
protocol:
port: 20883
name: tri
8 changes: 6 additions & 2 deletions online_bontique_demo/emailService/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@
<version>1.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>

<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-dependencies-zookeeper-curator5</artifactId>
<type>pom</type>
<artifactId>dubbo-nacos-spring-boot-starter</artifactId>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dubbo:
qos-enable: false
check-serializable: false
registry:
address: zookeeper://${zookeeper.address:127.0.0.1}:2181
address: nacos://${nacos.address:127.0.0.1}:8848
protocol:
port: 20884
name: tri
5 changes: 1 addition & 4 deletions online_bontique_demo/frontend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@

<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-dependencies-zookeeper-curator5</artifactId>
<type>pom</type>
<artifactId>dubbo-nacos-spring-boot-starter</artifactId>
</dependency>

<dependency>
Expand Down Expand Up @@ -120,9 +119,7 @@
<version>3.8.1</version>
<configuration>
<source>17</source>
<!-- 或者使用你当前使用的 Java 版本 -->
<target>17</target>
<!-- 或者使用你当前使用的 Java 版本 -->
<compilerArgs>
<arg>-parameters</arg>
</compilerArgs>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dubbo:
qos-enable: false
check-serializable: false
registry:
address: zookeeper://${zookeeper.address:127.0.0.1}:2181
address: nacos://${nacos.address:127.0.0.1}:8848
protocol:
port: 20889
name: tri
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
Expand Down Expand Up @@ -108,4 +108,4 @@
/* "Place Order" button */
.cart-checkout-form .cymbal-button-primary {
margin-top: 36px;
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
Expand All @@ -14,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

.order {
background: #F9F9F9;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
Expand All @@ -14,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/* General */

html, body {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
<!-- 引用 Header -->
<div th:replace="header :: header"></div>

<div th:class="local">
<span class="platform-flag" th:text="local"></span>
</div>

<main role="main" class="cart-sections">

<!-- 判断购物车是否为空 -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
See the License for the specific language governing permissions and
limitations under the License.
-->

<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">

<footer class="py-5">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
Expand Down
8 changes: 6 additions & 2 deletions online_bontique_demo/paymentService/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@
<version>1.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>

<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-dependencies-zookeeper-curator5</artifactId>
<type>pom</type>
<artifactId>dubbo-nacos-spring-boot-starter</artifactId>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dubbo:
qos-enable: false
check-serializable: false
registry:
address: zookeeper://${zookeeper.address:127.0.0.1}:2181
address: nacos://${nacos.address:127.0.0.1}:8848
protocol:
port: 20885
name: tri
9 changes: 7 additions & 2 deletions online_bontique_demo/productCatalogsService/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,15 @@
<version>1.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>

<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-dependencies-zookeeper-curator5</artifactId>
<type>pom</type>
<artifactId>dubbo-nacos-spring-boot-starter</artifactId>
</dependency>

</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dubbo:
qos-enable: false
check-serializable: false
registry:
address: zookeeper://${zookeeper.address:127.0.0.1}:2181
address: nacos://${nacos.address:127.0.0.1}:8848
protocol:
port: 20886
name: tri
8 changes: 6 additions & 2 deletions online_bontique_demo/recommendationService/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@
<version>1.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>

<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-dependencies-zookeeper-curator5</artifactId>
<type>pom</type>
<artifactId>dubbo-nacos-spring-boot-starter</artifactId>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dubbo:
qos-enable: false
check-serializable: false
registry:
address: zookeeper://${zookeeper.address:127.0.0.1}:2181
address: nacos://${nacos.address:127.0.0.1}:8848
protocol:
port: 20887
name: tri
3 changes: 1 addition & 2 deletions online_bontique_demo/shippingService/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@

<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-dependencies-zookeeper-curator5</artifactId>
<type>pom</type>
<artifactId>dubbo-nacos-spring-boot-starter</artifactId>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dubbo:
qos-enable: false
check-serializable: false
registry:
address: zookeeper://${zookeeper.address:127.0.0.1}:2181
address: nacos://${nacos.address:127.0.0.1}:8848
protocol:
port: 20888
name: tri

0 comments on commit 0604694

Please sign in to comment.