Skip to content

Commit 0d05dda

Browse files
committed
Spring Boot Dubbo Zookeeper
1 parent c3fc177 commit 0d05dda

File tree

2 files changed

+21
-35
lines changed

2 files changed

+21
-35
lines changed

springboot-dubbo-zookeeper/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ https://github.com/apache/dubbo-admin
3030

3131
### 端口相关
3232
1. dubbo-admin-server 端口8080
33-
2. consumer 端口9091
34-
3. provider 端口9092
33+
2. consumer 端口9093
34+
3. provider 端口9094
3535
4. zookeeper 端口2181(如果要修改配置文件在\conf\zoo.cfg,记得将consumer/provider中的端口也一并修改)

springboot-dubbo-zookeeper/pom.xml

Lines changed: 19 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,25 @@
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
55

6-
<groupId>com.springboot</groupId>
6+
<parent>
7+
<groupId>com.jonssonyan</groupId>
8+
<artifactId>spring-demo</artifactId>
9+
<version>0.0.1-SNAPSHOT</version>
10+
<relativePath/> <!-- lookup parent from repository -->
11+
</parent>
12+
713
<artifactId>springboot-dubbo-zookeeper</artifactId>
8-
<version>0.0.1-SNAPSHOT</version>
9-
<packaging>pom</packaging>
14+
<version>${reversion}</version>
15+
<name>springboot-dubbo-zookeeper</name>
16+
<description>Demo project for Spring Boot Dubbo Zookeeper</description>
1017

1118
<properties>
1219
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
13-
<java.version>1.8</java.version>
14-
<reversion>0.0.1-SNAPSHOT</reversion>
20+
<encoding>UTF-8</encoding>
21+
<java.version>${java.version}</java.version>
22+
<maven.compiler.source>${java.version}</maven.compiler.source>
23+
<maven.compiler.target>${java.version}</maven.compiler.target>
24+
1525
<spring-boot.version>2.3.2.RELEASE</spring-boot.version>
1626
<dubbo-spring-boot.version>2.7.8</dubbo-spring-boot.version>
1727
<mybatis-plus-boot-starter.version>3.3.2</mybatis-plus-boot-starter.version>
@@ -27,15 +37,6 @@
2737
</modules>
2838

2939
<dependencies>
30-
<dependency>
31-
<groupId>org.springframework.boot</groupId>
32-
<artifactId>spring-boot-starter-web</artifactId>
33-
</dependency>
34-
<dependency>
35-
<groupId>org.springframework.boot</groupId>
36-
<artifactId>spring-boot-starter-test</artifactId>
37-
<scope>test</scope>
38-
</dependency>
3940
<dependency>
4041
<groupId>org.apache.curator</groupId>
4142
<artifactId>curator-framework</artifactId>
@@ -51,11 +52,6 @@
5152
<artifactId>mysql-connector-java</artifactId>
5253
<scope>runtime</scope>
5354
</dependency>
54-
<dependency>
55-
<groupId>org.projectlombok</groupId>
56-
<artifactId>lombok</artifactId>
57-
<optional>true</optional>
58-
</dependency>
5955
<!-- https://mvnrepository.com/artifact/com.baomidou/mybatis-plus-boot-starter -->
6056
<dependency>
6157
<groupId>com.baomidou</groupId>
@@ -74,6 +70,7 @@
7470
<version>${dubbo-spring-boot.version}</version>
7571
</dependency>
7672
</dependencies>
73+
7774
<dependencyManagement>
7875
<dependencies>
7976
<dependency>
@@ -85,23 +82,12 @@
8582
</dependency>
8683
</dependencies>
8784
</dependencyManagement>
85+
8886
<build>
8987
<plugins>
9088
<plugin>
91-
<groupId>org.apache.maven.plugins</groupId>
92-
<artifactId>maven-compiler-plugin</artifactId>
93-
<configuration>
94-
<source>${java.version}</source>
95-
<target>${java.version}</target>
96-
<encoding>UTF-8</encoding>
97-
</configuration>
98-
</plugin>
99-
<plugin>
100-
<artifactId>maven-resources-plugin</artifactId>
101-
<version>3.1.0</version>
102-
<configuration>
103-
<encoding>${project.build.sourceEncoding}</encoding>
104-
</configuration>
89+
<groupId>org.springframework.boot</groupId>
90+
<artifactId>spring-boot-maven-plugin</artifactId>
10591
</plugin>
10692
</plugins>
10793
</build>

0 commit comments

Comments
 (0)