| 5 | import org.springframework.web.bind.annotation.*; |
| 6 | |
| 7 | @Controller |
| 8 | public class SimpleRestController { |
| 9 | @GetMapping("/ajax") |
| 10 | public String ajax() { |
| 11 | return "ajax"; |
| 12 | } |
| 13 | |
| 14 | @PostMapping("/send") |
| 15 | @ResponseBody |
| 16 | public Person test(@RequestBody Person p) { |
| 17 | System.out.println("p = " + p); |
| 18 | p.setName("ABC"); |
| 19 | p.setAge(p.getAge() + 10); |
| 20 | |
| 21 | return p; |
| 22 | } |
| 23 | } |
nothing calls this directly
no outgoing calls
no test coverage detected