Skip to content

Commit bd40d94

Browse files
committed
m
1 parent a1e6285 commit bd40d94

File tree

7 files changed

+87
-162
lines changed

7 files changed

+87
-162
lines changed
Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<parent>
5+
<groupId>com.neo</groupId>
6+
<artifactId>spring-cloud-parent</artifactId>
7+
<version>1.0.0.BUILD-SNAPSHOT</version>
8+
</parent>
49
<modelVersion>4.0.0</modelVersion>
510

6-
<groupId>com.neo</groupId>
711
<artifactId>gateway-service-zuul-eureka</artifactId>
8-
<version>0.0.1-SNAPSHOT</version>
912
<packaging>jar</packaging>
1013

11-
<name>gateway-service-zuul-eureka</name>
12-
<description>Demo project for Spring cloud zuul</description>
13-
14-
<parent>
15-
<groupId>org.springframework.boot</groupId>
16-
<artifactId>spring-boot-starter-parent</artifactId>
17-
<version>1.5.3.RELEASE</version>
18-
<relativePath/> <!-- lookup parent from repository -->
19-
</parent>
20-
21-
<properties>
22-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23-
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
24-
<java.version>1.8</java.version>
25-
<spring-cloud.version>Dalston.RELEASE</spring-cloud.version>
26-
</properties>
27-
2814
<dependencies>
2915
<dependency>
3016
<groupId>org.springframework.cloud</groupId>
@@ -41,18 +27,6 @@
4127
</dependency>
4228
</dependencies>
4329

44-
<dependencyManagement>
45-
<dependencies>
46-
<dependency>
47-
<groupId>org.springframework.cloud</groupId>
48-
<artifactId>spring-cloud-dependencies</artifactId>
49-
<version>${spring-cloud.version}</version>
50-
<type>pom</type>
51-
<scope>import</scope>
52-
</dependency>
53-
</dependencies>
54-
</dependencyManagement>
55-
5630
<build>
5731
<plugins>
5832
<plugin>
@@ -62,5 +36,4 @@
6236
</plugins>
6337
</build>
6438

65-
6639
</project>
Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<parent>
5+
<groupId>com.neo</groupId>
6+
<artifactId>spring-cloud-parent</artifactId>
7+
<version>1.0.0.BUILD-SNAPSHOT</version>
8+
</parent>
49
<modelVersion>4.0.0</modelVersion>
510

6-
<groupId>com.neo</groupId>
711
<artifactId>gateway-service-zuul-simple</artifactId>
8-
<version>0.0.1-SNAPSHOT</version>
912
<packaging>jar</packaging>
1013

11-
<name>gateway-service-zuul-simple</name>
12-
<description>Demo project for Spring cloud zuul</description>
13-
14-
<parent>
15-
<groupId>org.springframework.boot</groupId>
16-
<artifactId>spring-boot-starter-parent</artifactId>
17-
<version>1.5.3.RELEASE</version>
18-
<relativePath/> <!-- lookup parent from repository -->
19-
</parent>
20-
21-
<properties>
22-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23-
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
24-
<java.version>1.8</java.version>
25-
<spring-cloud.version>Dalston.RELEASE</spring-cloud.version>
26-
</properties>
27-
2814
<dependencies>
2915
<dependency>
3016
<groupId>org.springframework.cloud</groupId>
@@ -37,18 +23,6 @@
3723
</dependency>
3824
</dependencies>
3925

40-
<dependencyManagement>
41-
<dependencies>
42-
<dependency>
43-
<groupId>org.springframework.cloud</groupId>
44-
<artifactId>spring-cloud-dependencies</artifactId>
45-
<version>${spring-cloud.version}</version>
46-
<type>pom</type>
47-
<scope>import</scope>
48-
</dependency>
49-
</dependencies>
50-
</dependencyManagement>
51-
5226
<build>
5327
<plugins>
5428
<plugin>
@@ -58,5 +32,4 @@
5832
</plugins>
5933
</build>
6034

61-
6235
</project>

gateway-service-zuul/gateway-service-zuul-simple/src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
server.port=8888
22

3-
#这里的配置表示,访问/it/** 直接重定向到http://www.ityouknow.com/**
3+
#\u8FD9\u91CC\u7684\u914D\u7F6E\u8868\u793A\uFF0C\u8BBF\u95EE/it/** \u76F4\u63A5\u91CD\u5B9A\u5411\u5230http://www.ityouknow.com/**
44
zuul.routes.it.path=/it/**
55
zuul.routes.it.url=http://www.ityouknow.com
66

gateway-service-zuul/pom.xml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
<groupId>com.neo</groupId>
7+
<artifactId>spring-cloud-parent</artifactId>
8+
<version>1.0.0.BUILD-SNAPSHOT</version>
9+
10+
<modules>
11+
<module>gateway-service-zuul-eureka</module>
12+
<module>gateway-service-zuul-simple</module>
13+
<module>spring-cloud-eureka</module>
14+
<module>spring-cloud-producer</module>
15+
<module>spring-cloud-producer-2</module>
16+
</modules>
17+
18+
<packaging>pom</packaging>
19+
<name>Spring cloud zuul</name>
20+
<description>Demo project for Spring Boot</description>
21+
22+
<parent>
23+
<groupId>org.springframework.boot</groupId>
24+
<artifactId>spring-boot-starter-parent</artifactId>
25+
<version>1.5.9.RELEASE</version>
26+
<relativePath/> <!-- lookup parent from repository -->
27+
</parent>
28+
29+
<properties>
30+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
31+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
32+
<java.version>1.8</java.version>
33+
<spring-cloud.version>Edgware.RELEASE</spring-cloud.version>
34+
</properties>
35+
36+
<dependencies>
37+
<dependency>
38+
<groupId>com.h2database</groupId>
39+
<artifactId>h2</artifactId>
40+
<scope>compile</scope>
41+
</dependency>
42+
<dependency>
43+
<groupId>org.projectlombok</groupId>
44+
<artifactId>lombok</artifactId>
45+
<optional>false</optional>
46+
</dependency>
47+
</dependencies>
48+
49+
<dependencyManagement>
50+
<dependencies>
51+
<dependency>
52+
<groupId>org.springframework.cloud</groupId>
53+
<artifactId>spring-cloud-dependencies</artifactId>
54+
<version>${spring-cloud.version}</version>
55+
<type>pom</type>
56+
<scope>import</scope>
57+
</dependency>
58+
</dependencies>
59+
</dependencyManagement>
60+
61+
</project>
Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<parent>
5+
<groupId>com.neo</groupId>
6+
<artifactId>spring-cloud-parent</artifactId>
7+
<version>1.0.0.BUILD-SNAPSHOT</version>
8+
</parent>
49
<modelVersion>4.0.0</modelVersion>
510

6-
<groupId>com.neo</groupId>
711
<artifactId>spring-cloud-eureka</artifactId>
8-
<version>0.0.1-SNAPSHOT</version>
912
<packaging>jar</packaging>
1013

11-
<name>spring-cloud-eureka</name>
12-
<description>Demo project for Spring cloud eureka</description>
13-
14-
<parent>
15-
<groupId>org.springframework.boot</groupId>
16-
<artifactId>spring-boot-starter-parent</artifactId>
17-
<version>1.5.3.RELEASE</version>
18-
<relativePath/> <!-- lookup parent from repository -->
19-
</parent>
20-
21-
<properties>
22-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23-
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
24-
<java.version>1.8</java.version>
25-
<spring-cloud.version>Dalston.RELEASE</spring-cloud.version>
26-
</properties>
27-
2814
<dependencies>
2915
<dependency>
3016
<groupId>org.springframework.cloud</groupId>
@@ -37,18 +23,6 @@
3723
</dependency>
3824
</dependencies>
3925

40-
<dependencyManagement>
41-
<dependencies>
42-
<dependency>
43-
<groupId>org.springframework.cloud</groupId>
44-
<artifactId>spring-cloud-dependencies</artifactId>
45-
<version>${spring-cloud.version}</version>
46-
<type>pom</type>
47-
<scope>import</scope>
48-
</dependency>
49-
</dependencies>
50-
</dependencyManagement>
51-
5226
<build>
5327
<plugins>
5428
<plugin>
@@ -58,5 +32,4 @@
5832
</plugins>
5933
</build>
6034

61-
6235
</project>

gateway-service-zuul/spring-cloud-producer-2/pom.xml

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,13 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
5-
6-
<groupId>com.neo</groupId>
7-
<artifactId>spring-cloud-producer-2</artifactId>
8-
<version>0.0.1-SNAPSHOT</version>
9-
<packaging>jar</packaging>
10-
11-
<name>spring-cloud-producer-2</name>
12-
<description>Demo project for Spring cloud producer</description>
13-
145
<parent>
15-
<groupId>org.springframework.boot</groupId>
16-
<artifactId>spring-boot-starter-parent</artifactId>
17-
<version>1.5.3.RELEASE</version>
18-
<relativePath/> <!-- lookup parent from repository -->
6+
<groupId>com.neo</groupId>
7+
<artifactId>spring-cloud-parent</artifactId>
8+
<version>1.0.0.BUILD-SNAPSHOT</version>
199
</parent>
20-
21-
<properties>
22-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23-
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
24-
<java.version>1.7</java.version>
25-
<spring-cloud.version>Dalston.RELEASE</spring-cloud.version>
26-
</properties>
10+
<artifactId>spring-cloud-producer-2</artifactId>
11+
<packaging>jar</packaging>
2712

2813
<dependencies>
2914
<dependency>
@@ -37,18 +22,6 @@
3722
</dependency>
3823
</dependencies>
3924

40-
<dependencyManagement>
41-
<dependencies>
42-
<dependency>
43-
<groupId>org.springframework.cloud</groupId>
44-
<artifactId>spring-cloud-dependencies</artifactId>
45-
<version>${spring-cloud.version}</version>
46-
<type>pom</type>
47-
<scope>import</scope>
48-
</dependency>
49-
</dependencies>
50-
</dependencyManagement>
51-
5225
<build>
5326
<plugins>
5427
<plugin>
@@ -58,5 +31,4 @@
5831
</plugins>
5932
</build>
6033

61-
6234
</project>

gateway-service-zuul/spring-cloud-producer/pom.xml

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,14 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
5-
6-
<groupId>com.neo</groupId>
7-
<artifactId>spring-cloud-producer</artifactId>
8-
<version>0.0.1-SNAPSHOT</version>
9-
<packaging>jar</packaging>
10-
11-
<name>spring-cloud-producer</name>
12-
<description>Demo project for Spring cloud producer</description>
13-
145
<parent>
15-
<groupId>org.springframework.boot</groupId>
16-
<artifactId>spring-boot-starter-parent</artifactId>
17-
<version>1.5.3.RELEASE</version>
18-
<relativePath/> <!-- lookup parent from repository -->
6+
<groupId>com.neo</groupId>
7+
<artifactId>spring-cloud-parent</artifactId>
8+
<version>1.0.0.BUILD-SNAPSHOT</version>
199
</parent>
2010

21-
<properties>
22-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23-
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
24-
<java.version>1.7</java.version>
25-
<spring-cloud.version>Dalston.RELEASE</spring-cloud.version>
26-
</properties>
11+
<artifactId>spring-cloud-producer</artifactId>
12+
<packaging>jar</packaging>
2713

2814
<dependencies>
2915
<dependency>
@@ -37,18 +23,6 @@
3723
</dependency>
3824
</dependencies>
3925

40-
<dependencyManagement>
41-
<dependencies>
42-
<dependency>
43-
<groupId>org.springframework.cloud</groupId>
44-
<artifactId>spring-cloud-dependencies</artifactId>
45-
<version>${spring-cloud.version}</version>
46-
<type>pom</type>
47-
<scope>import</scope>
48-
</dependency>
49-
</dependencies>
50-
</dependencyManagement>
51-
5226
<build>
5327
<plugins>
5428
<plugin>
@@ -58,5 +32,4 @@
5832
</plugins>
5933
</build>
6034

61-
6235
</project>

0 commit comments

Comments
 (0)