You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
To use @RestController, you must add @ResponseBody to the method with the specified address, otherwise the connection will be unavailable
To Reproduce
Steps to reproduce the behavior:
java class
@GetMapping(value = {"/api/test/mapping/get"})
publicStringgetMapping(@RequestParam(value = "value") Stringvalue)
{
returnString.format("This is @GetMapping test case, value %s", value);
}
Describe the bug
To use
@RestController
, you must add@ResponseBody
to the method with the specified address, otherwise the connection will be unavailableTo Reproduce
Steps to reproduce the behavior:
Expected behavior
return
"This is @PostMapping test case, value 123"%
Component (please set component name):
netty
1.0.6
The text was updated successfully, but these errors were encountered: