-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from onewelcome/update-sb-and-java
Update spring boot to 3.x and java to 17
- Loading branch information
Showing
8 changed files
with
53 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 14 additions & 15 deletions
29
src/main/java/com/onegini/examples/resourcegateway/config/ResourceGatewayConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,28 @@ | ||
package com.onegini.examples.resourcegateway.config; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.databind.PropertyNamingStrategies; | ||
import org.springframework.boot.web.client.RestTemplateBuilder; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder; | ||
import org.springframework.web.client.RestTemplate; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.databind.PropertyNamingStrategy; | ||
|
||
@Configuration | ||
public class ResourceGatewayConfig { | ||
|
||
@Bean | ||
public Jackson2ObjectMapperBuilder jacksonBuilder() { | ||
final Jackson2ObjectMapperBuilder b = new Jackson2ObjectMapperBuilder(); | ||
b.propertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE) | ||
.serializationInclusion(JsonInclude.Include.NON_NULL); | ||
return b; | ||
} | ||
@Bean | ||
public Jackson2ObjectMapperBuilder jacksonBuilder() { | ||
final Jackson2ObjectMapperBuilder b = new Jackson2ObjectMapperBuilder(); | ||
b.propertyNamingStrategy(PropertyNamingStrategies.SNAKE_CASE) | ||
.serializationInclusion(JsonInclude.Include.NON_NULL); | ||
return b; | ||
} | ||
|
||
@Bean | ||
public RestTemplate restTemplate(final RestTemplateBuilder builder) { | ||
return builder | ||
.build(); | ||
} | ||
@Bean | ||
public RestTemplate restTemplate(final RestTemplateBuilder builder) { | ||
return builder | ||
.build(); | ||
} | ||
|
||
} |
14 changes: 6 additions & 8 deletions
14
src/main/java/com/onegini/examples/resourcegateway/service/DeviceApiRequestService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 8 additions & 14 deletions
22
...xamples/resourcegateway/service/tokenintrospection/TokenIntrospectionRequestExecutor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
...negini/examples/resourcegateway/service/tokenintrospection/TokenIntrospectionService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 13 additions & 29 deletions
42
src/main/java/com/onegini/examples/resourcegateway/web/ResourcesController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 4 additions & 6 deletions
10
src/test/java/com/onegini/examples/resourcegateway/SpringContextTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters