Browse Source

Merge branch '3.3.x'

Closes gh-41950
pull/41975/head
Stéphane Nicoll 2 years ago
parent
commit
f3693070ca
  1. 11
      spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/web/servlet/springmvc/MyUserHandler.java
  2. 8
      spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/web/reactive/webflux/MyUserHandler.kt
  3. 8
      spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/web/servlet/springmvc/MyUserHandler.kt

11
spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/web/servlet/springmvc/MyUserHandler.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2012-2022 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -24,18 +24,15 @@ import org.springframework.web.servlet.function.ServerResponse; @@ -24,18 +24,15 @@ import org.springframework.web.servlet.function.ServerResponse;
public class MyUserHandler {
public ServerResponse getUser(ServerRequest request) {
/**/
return ServerResponse.ok().build();
/**/ return ServerResponse.ok().build();
}
public ServerResponse getUserCustomers(ServerRequest request) {
/**/
return ServerResponse.ok().build();
/**/ return ServerResponse.ok().build();
}
public ServerResponse deleteUser(ServerRequest request) {
/**/
return ServerResponse.ok().build();
/**/ return ServerResponse.ok().build();
}
}

8
spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/web/reactive/webflux/MyUserHandler.kt

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2012-2022 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -26,15 +26,15 @@ import reactor.core.publisher.Mono @@ -26,15 +26,15 @@ import reactor.core.publisher.Mono
class MyUserHandler {
fun getUser(request: ServerRequest?): Mono<ServerResponse> {
return ServerResponse.ok().build()
/**/ return ServerResponse.ok().build()
}
fun getUserCustomers(request: ServerRequest?): Mono<ServerResponse> {
return ServerResponse.ok().build()
/**/ return ServerResponse.ok().build()
}
fun deleteUser(request: ServerRequest?): Mono<ServerResponse> {
return ServerResponse.ok().build()
/**/ return ServerResponse.ok().build()
}
}

8
spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/web/servlet/springmvc/MyUserHandler.kt

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2012-2022 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -25,15 +25,15 @@ import org.springframework.web.servlet.function.ServerResponse @@ -25,15 +25,15 @@ import org.springframework.web.servlet.function.ServerResponse
class MyUserHandler {
fun getUser(request: ServerRequest?): ServerResponse {
return ServerResponse.ok().build()
/**/ return ServerResponse.ok().build()
}
fun getUserCustomers(request: ServerRequest?): ServerResponse {
return ServerResponse.ok().build()
/**/ return ServerResponse.ok().build()
}
fun deleteUser(request: ServerRequest?): ServerResponse {
return ServerResponse.ok().build()
/**/ return ServerResponse.ok().build()
}
}

Loading…
Cancel
Save