Skip to content

Commit 39e7498

Browse files
authored
Merge pull request #1997 from cloudfoundry/update_credhub-enabled-app
Update credhub-enabled-app to Spring Boot 4
2 parents bc9b4c0 + d03835a commit 39e7498

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

assets/credhub-enabled-app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ repositories {
1515
mavenCentral()
1616
}
1717

18-
19-
jar {
18+
tasks.named('bootJar') {
2019
archiveBaseName = 'credhub-enabled-app'
20+
archiveClassifier = ''
2121
destinationDirectory = file("$rootDir")
2222
}
-58 Bytes
Binary file not shown.

assets/credhub-enabled-app/src/main/java/org/credhub/Application.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.SpringBootApplication;
5-
import org.springframework.boot.web.client.RestTemplateBuilder;
65
import org.springframework.context.annotation.Bean;
76
import org.springframework.web.client.RestTemplate;
87

@@ -16,7 +15,7 @@ public static void main(String[] args) {
1615
}
1716

1817
@Bean
19-
public RestTemplate restTemplate(RestTemplateBuilder builder) {
20-
return builder.build();
18+
public RestTemplate restTemplate() {
19+
return new RestTemplate();
2120
}
2221
}

0 commit comments

Comments
 (0)