Skip to content

Commit 0e50a86

Browse files
author
qinquanwen
committed
wenwne
1 parent 7a47b22 commit 0e50a86

File tree

1 file changed

+8
-0
lines changed
  • api-boot-samples/api-boot-sample-logging/src/main/java/org/minbox/framework/api/boot/sample/logging

1 file changed

+8
-0
lines changed

api-boot-samples/api-boot-sample-logging/src/main/java/org/minbox/framework/api/boot/sample/logging/IndexController.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ public User index(@RequestBody User user) throws Exception {
4747
return user;
4848
}
4949

50+
@PostMapping(value = "/wen/test")
51+
public User index(@RequestBody User user) throws Exception {
52+
/*HttpEntity<String> httpEntity = new HttpEntity(JSON.toJSONString(user));
53+
ResponseEntity<String> result = restTemplate.postForEntity("http://localhost:8080/index", httpEntity, String.class);
54+
System.out.println(result.getBody());*/
55+
return user;
56+
}
57+
5058
@Data
5159
public static class User {
5260
private String name;

0 commit comments

Comments
 (0)