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

Spring plugin reload unsuccessful: When modifying parameters in RequestParam separately. #594

Open
homejim opened this issue Oct 2, 2024 · 2 comments

Comments

@homejim
Copy link
Contributor

homejim commented Oct 2, 2024

I ran @RequestParam("id") int id. Then I changed the parameter to @RequestParam("id2"), but it didn't work; it still requires the id parameter instead of id2.

 @RequestMapping("/hello")
    public ResponseEntity<User> test(@RequestParam("id") int id) {
        User user = userService.load(id);
        return ResponseEntity.ok(user);
    }
@gejun123456
Copy link
Contributor

gejun123456@347c1e8#diff-15e9a5852d8616f54c9599c79c5fe1597a6824cd17e960eaf52ce7ef1560218cR56
have done some work to make it work, it works for my controller project. It might will help you.

@homejim
Copy link
Contributor Author

homejim commented Oct 2, 2024

gejun123456@347c1e8#diff-15e9a5852d8616f54c9599c79c5fe1597a6824cd17e960eaf52ce7ef1560218cR56
have done some work to make it work, it works for my controller project. It might will help you.

Great!
You can try submitting this code separately as a PR to the master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants