Skip to content

Commit 548b577

Browse files
authored
[JAVA-43863] Move spring-resttemplate modules code (#18210)
1 parent adf8bb2 commit 548b577

File tree

57 files changed

+137
-129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+137
-129
lines changed

spring-web-modules/spring-resttemplate-1/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ This module contains articles about Spring RestTemplate
55
### Relevant Articles:
66
- [RestTemplate Post Request with JSON](https://www.baeldung.com/spring-resttemplate-post-json)
77
- [Get and Post Lists of Objects with RestTemplate](https://www.baeldung.com/spring-rest-template-list)
8+
- [Spring RestTemplate Request/Response Logging](https://www.baeldung.com/spring-resttemplate-logging)
9+
- [A Guide To Spring Redirects](https://www.baeldung.com/spring-redirect-and-forward)
10+
- [How to Make Multiple REST Calls in CompletableFuture](https://www.baeldung.com/rest-completablefuture-several-calls)
11+
- [Uploading MultipartFile with Spring RestTemplate](https://www.baeldung.com/spring-rest-template-multipart-upload)
12+
- [Access HTTPS REST Service Using Spring RestTemplate](https://www.baeldung.com/spring-resttemplate-secure-https-service)
13+
- More articles: [[<-- prev>]](/../spring-resttemplate) [[next -->]](/../spring-resttemplate-2)

spring-web-modules/spring-resttemplate-1/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
<groupId>org.springframework.boot</groupId>
2525
<artifactId>spring-boot-starter-test</artifactId>
2626
</dependency>
27+
<dependency>
28+
<groupId>org.apache.httpcomponents.client5</groupId>
29+
<artifactId>httpclient5</artifactId>
30+
</dependency>
2731
</dependencies>
2832

2933
<properties>

spring-web-modules/spring-resttemplate-3/src/main/java/com/baeldung/restcallscompletablefuture/Purchase.java renamed to spring-web-modules/spring-resttemplate-1/src/main/java/com/baeldung/resttemplate/restcallscompletablefuture/Purchase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.baeldung.restcallscompletablefuture;
1+
package com.baeldung.resttemplate.restcallscompletablefuture;
22

33
public class Purchase {
44

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.baeldung.restcallscompletablefuture;
1+
package com.baeldung.resttemplate.restcallscompletablefuture;
22

33
import static java.lang.String.format;
44

@@ -11,6 +11,7 @@
1111
import org.springframework.stereotype.Component;
1212
import org.springframework.web.client.RestTemplate;
1313

14+
1415
@Component
1516
public class PurchaseRestCallsAsyncExecutor {
1617

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
package com.baeldung.sampleapp.web.controller.redirect;
2-
3-
import jakarta.servlet.http.HttpServletRequest;
1+
package com.baeldung.resttemplate.web.controller.redirect;
42

53
import org.springframework.http.HttpStatus;
64
import org.springframework.stereotype.Controller;
@@ -13,6 +11,8 @@
1311
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
1412
import org.springframework.web.servlet.view.RedirectView;
1513

14+
import jakarta.servlet.http.HttpServletRequest;
15+
1616
@Controller
1717
@RequestMapping("/")
1818
public class RedirectController {
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
package com.baeldung.sampleapp.web.controller.redirect;
2-
3-
import jakarta.servlet.http.HttpServletRequest;
1+
package com.baeldung.resttemplate.web.controller.redirect;
42

53
import org.springframework.stereotype.Controller;
64
import org.springframework.web.bind.annotation.RequestMapping;
75
import org.springframework.web.bind.annotation.RequestMethod;
86
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
97
import org.springframework.web.servlet.view.RedirectView;
108

9+
import jakarta.servlet.http.HttpServletRequest;
10+
1111
@Controller
1212
@RequestMapping("/")
1313
public class RedirectParamController {

0 commit comments

Comments
 (0)