Skip to content

Commit 26f3700

Browse files
author
Matt Raible
committed
Update to Spring Boot 2.2.5 and Spring Cloud Hoxton.SR3
1 parent 81ea717 commit 26f3700

File tree

5 files changed

+11
-22
lines changed

5 files changed

+11
-22
lines changed

spring-boot+cloud/api-gateway/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>2.1.5.RELEASE</version>
8+
<version>2.2.5.RELEASE</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111
<groupId>com.example</groupId>
@@ -16,7 +16,7 @@
1616

1717
<properties>
1818
<java.version>1.8</java.version>
19-
<spring-cloud.version>Greenwich.SR1</spring-cloud.version>
19+
<spring-cloud.version>Hoxton.SR3</spring-cloud.version>
2020
</properties>
2121

2222
<dependencies>
@@ -47,7 +47,7 @@
4747
<dependency>
4848
<groupId>com.okta.spring</groupId>
4949
<artifactId>okta-spring-boot-starter</artifactId>
50-
<version>1.2.0</version>
50+
<version>1.4.0</version>
5151
</dependency>
5252
<dependency>
5353
<groupId>org.projectlombok</groupId>

spring-boot+cloud/api-gateway/src/main/java/com/example/apigateway/ApiGatewayApplication.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import org.springframework.context.annotation.Bean;
1515
import org.springframework.context.annotation.Configuration;
1616
import org.springframework.core.Ordered;
17-
import org.springframework.hateoas.Resources;
17+
import org.springframework.hateoas.CollectionModel;
1818
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
1919
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
2020
import org.springframework.security.oauth2.client.OAuth2AuthorizedClientService;
@@ -92,7 +92,7 @@ interface CarClient {
9292

9393
@GetMapping("/cars")
9494
@CrossOrigin
95-
Resources<Car> readCars();
95+
CollectionModel<Car> readCars();
9696
}
9797

9898
@RestController

spring-boot+cloud/api-gateway/src/main/resources/application.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
spring.application.name=api-gateway
2-
okta.oauth2.issuer=https://dev-737523.oktapreview.com/oauth2/default
3-
okta.oauth2.client-id=0oafx05pu2pxhjgkC0h7
4-
okta.oauth2.client-secret=ozxBeuk7nE-oLhkUvINe1cxR3LITquTp7Jt2NvX7
2+
okta.oauth2.issuer=https://dev-133320.okta.com/oauth2/default
3+
okta.oauth2.client-id=0oa35aqn81ftCrz53357
4+
okta.oauth2.client-secret=lchv-e8ZLN3si7v84tVq-W4OT1l7kzkE5irBvDhs
55
feign.hystrix.enabled=true
66
hystrix.shareSecurityContext=true
77

spring-boot+cloud/demo.adoc

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,6 @@ The brackets at the end of each step indicate the alias's or IntelliJ Live Templ
3232
sdk install java 11.0.2-open
3333
sdk default java 11.0.2-open
3434

35-
. Add JAXB to `discovery-service` so it works with Java 11
36-
37-
<dependency>
38-
<groupId>org.glassfish.jaxb</groupId>
39-
<artifactId>jaxb-runtime</artifactId>
40-
</dependency>
41-
4235
. Add `@EnableEurekaServer` and properties to set port and turn off discovery
4336

4437
server.port=8761
@@ -79,7 +72,7 @@ The brackets at the end of each step indicate the alias's or IntelliJ Live Templ
7972
<dependency>
8073
<groupId>com.okta.spring</groupId>
8174
<artifactId>okta-spring-boot-starter</artifactId>
82-
<version>1.2.1</version>
75+
<version>1.4.0</version>
8376
</dependency>
8477

8578
. Create a web app on Okta, use `http://localhost:8080/login/oauth2/code/okta` for redirect URI

spring-boot+cloud/discovery-service/pom.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>2.1.5.RELEASE</version>
8+
<version>2.2.5.RELEASE</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111
<groupId>com.example</groupId>
@@ -16,18 +16,14 @@
1616

1717
<properties>
1818
<java.version>11</java.version>
19-
<spring-cloud.version>Greenwich.SR1</spring-cloud.version>
19+
<spring-cloud.version>Hoxton.SR3</spring-cloud.version>
2020
</properties>
2121

2222
<dependencies>
2323
<dependency>
2424
<groupId>org.springframework.cloud</groupId>
2525
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
2626
</dependency>
27-
<dependency>
28-
<groupId>org.glassfish.jaxb</groupId>
29-
<artifactId>jaxb-runtime</artifactId>
30-
</dependency>
3127
<dependency>
3228
<groupId>org.springframework.boot</groupId>
3329
<artifactId>spring-boot-starter-test</artifactId>

0 commit comments

Comments
 (0)