Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug report for @RestController On netty component #17

Closed
qianmoQ opened this issue Feb 2, 2021 · 1 comment
Closed

Bug report for @RestController On netty component #17

qianmoQ opened this issue Feb 2, 2021 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@qianmoQ
Copy link
Member

qianmoQ commented Feb 2, 2021

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:

  1. java class
    @GetMapping(value = {"/api/test/mapping/get"})
    public String getMapping(@RequestParam(value = "value") String value)
    {
        return String.format("This is @GetMapping test case, value %s", value);
    }
  1. See error
> $ curl -X GET 'http://localhost:8080/api/test/mapping/post?value=123'

Expected behavior
return "This is @PostMapping test case, value 123"%

Component (please set component name):

  • Component: netty
  • Version 1.0.6
@qianmoQ qianmoQ added the bug Something isn't working label Feb 2, 2021
@qianmoQ qianmoQ self-assigned this Feb 2, 2021
@qianmoQ
Copy link
Member Author

qianmoQ commented Feb 5, 2021

This problem has been fixed and will be fixed in the next version. Please pay attention to our next version

@qianmoQ qianmoQ closed this as completed Feb 5, 2021
@qianmoQ qianmoQ added this to the v1.0.7 milestone Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant