Skip to content

Commit 8b3070e

Browse files
committed
Merge branch '3.1.x'
2 parents fc8a8d3 + 034803e commit 8b3070e

File tree

5 files changed

+46
-5
lines changed

5 files changed

+46
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright 2012-2023 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package org.springframework.boot.docs.io.restclient.webclient.ssl;
18+
19+
public class Details {
20+
21+
}

spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/io/restclient/webclient/ssl/MyService.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import reactor.core.publisher.Mono;
2020

2121
import org.springframework.boot.autoconfigure.web.reactive.function.client.WebClientSsl;
22-
import org.springframework.boot.docs.io.restclient.webclient.Details;
2322
import org.springframework.stereotype.Service;
2423
import org.springframework.web.reactive.function.client.WebClient;
2524

spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/io/restclient/webclient/MyService.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ class MyService(webClientBuilder: WebClient.Builder) {
3030
}
3131

3232
fun someRestCall(name: String?): Mono<Details> {
33-
return webClient.get().uri("/{name}/details", name).retrieve().bodyToMono(Details::class.java)
33+
return webClient.get().uri("/{name}/details", name)
34+
.retrieve().bodyToMono(Details::class.java)
3435
}
3536

3637
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright 2012-2023 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package org.springframework.boot.docs.io.restclient.webclient.ssl
18+
19+
class Details

spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/io/restclient/webclient/ssl/MyService.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package org.springframework.boot.docs.io.restclient.webclient.ssl
1818

1919
import org.springframework.boot.autoconfigure.web.reactive.function.client.WebClientSsl
20-
import org.springframework.boot.docs.io.restclient.webclient.Details
2120
import org.springframework.stereotype.Service
2221
import org.springframework.web.reactive.function.client.WebClient
2322
import reactor.core.publisher.Mono
@@ -28,11 +27,13 @@ class MyService(webClientBuilder: WebClient.Builder, ssl: WebClientSsl) {
2827
private val webClient: WebClient
2928

3029
init {
31-
webClient = webClientBuilder.baseUrl("https://example.org").apply(ssl.fromBundle("mybundle")).build()
30+
webClient = webClientBuilder.baseUrl("https://example.org")
31+
.apply(ssl.fromBundle("mybundle")).build()
3232
}
3333

3434
fun someRestCall(name: String?): Mono<Details> {
35-
return webClient.get().uri("/{name}/details", name).retrieve().bodyToMono(Details::class.java)
35+
return webClient.get().uri("/{name}/details", name)
36+
.retrieve().bodyToMono(Details::class.java)
3637
}
3738

3839
}

0 commit comments

Comments
 (0)