Skip to content

Commit 81ab297

Browse files
committed
Merge branch 'Finchley'
# Conflicts: # pom.xml
2 parents 53709b7 + 348c8be commit 81ab297

File tree

61 files changed

+134
-134
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+134
-134
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.9/apache-maven-3.3.9-bin.zip
1+
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip

customers-stores-ui/Dockerfile

Lines changed: 0 additions & 10 deletions
This file was deleted.

customers-stores-ui/app.groovy

Lines changed: 0 additions & 12 deletions
This file was deleted.

customers-stores-ui/application.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

customers-stores-ui/docker-compose.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

customers-stores-ui/docker/Dockerfile

Lines changed: 0 additions & 6 deletions
This file was deleted.

customers-stores-ui/pom.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
5+
<parent>
6+
<groupId>org.springframework.samples.rest</groupId>
7+
<artifactId>rest-microservices</artifactId>
8+
<version>2.0.0.BUILD-SNAPSHOT</version>
9+
</parent>
10+
11+
<artifactId>rest-microservices-ui</artifactId>
12+
13+
<properties>
14+
</properties>
15+
16+
<dependencies>
17+
<dependency>
18+
<groupId>org.springframework.boot</groupId>
19+
<artifactId>spring-boot-starter-webflux</artifactId>
20+
</dependency>
21+
<dependency>
22+
<groupId>org.springframework.cloud</groupId>
23+
<artifactId>spring-cloud-starter-gateway</artifactId>
24+
</dependency>
25+
</dependencies>
26+
27+
</project>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package example.ui;
2+
3+
import org.springframework.boot.SpringApplication;
4+
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
6+
import org.springframework.stereotype.Controller;
7+
8+
@EnableDiscoveryClient
9+
@SpringBootApplication
10+
@Controller
11+
public class UiApp {
12+
13+
public static void main(String[] args) {
14+
new SpringApplication(UiApp.class).run(args);
15+
}
16+
}

customers-stores-ui/application-cloud.properties renamed to customers-stores-ui/src/main/resources/application-cloud.properties

File renamed without changes.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
server:
2+
port: 9900
3+
logging:
4+
level:
5+
com.netflix.discovery: 'OFF'
6+
com.netflix.zuul: 'OFF'
7+
eureka:
8+
instance:
9+
leaseRenewalIntervalInSeconds: 10
10+
client:
11+
registryFetchIntervalSeconds: 5
12+
13+
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 60000
14+
ribbon:
15+
ServerListRefreshInterval: 5000
16+
ConnectTimeout: 3000
17+
ReadTimeout: 60000
18+
19+
spring:
20+
cloud:
21+
gateway:
22+
routes:
23+
- id: stores
24+
uri: lb://stores
25+
predicates:
26+
- Path=/stores/**
27+
- id: customers
28+
uri: lb://customers
29+
predicates:
30+
- Path=/customers/**
31+
- id: root
32+
uri: no://op
33+
predicates:
34+
- Path=/
35+
filters:
36+
- RedirectTo=302, /index.html#/customers
37+
38+
management:
39+
endpoints:
40+
web:
41+
exposure:
42+
include: '*'

0 commit comments

Comments
 (0)