Skip to content
This repository was archived by the owner on Dec 15, 2021. It is now read-only.

Commit bd086b0

Browse files
committed
Add missing @responsebody to controller method
1 parent 4816c0b commit bd086b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SPR-8711/src/main/java/org/springframework/web/issues/PutController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
public class PutController {
3030

3131
@RequestMapping(value = "update", method = PUT)
32-
public void update(@RequestBody TestObject object) {
32+
public @ResponseBody void update(@RequestBody TestObject object) {
3333
System.out.println(object);
3434
}
3535

SPR-8711/src/test/java/org/springframework/web/issues/ClientTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
*/
3636
public class ClientTests {
3737

38-
private static final String baseUrl = "http://localhost:8080/SPR-8711-1.0-SNAPSHOT/test/";
38+
private static final String baseUrl = "http://localhost:8080/SPR-8711/test/";
3939

4040
private RestTemplate template;
4141

0 commit comments

Comments
 (0)