kaiser20106 opened a new issue, #15579: URL: https://github.com/apache/dubbo/issues/15579
### Pre-check - [x] I am sure that all the content I provide is in English. ### Search before asking - [x] I had searched in the [issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no similar issues. ### Apache Dubbo Component Java SDK (apache/dubbo) ### Dubbo Version dubbo version: 3.3.5 Oracle OpenJDK 21.0.3 Windows10 Intellij IDEA ### Steps to reproduce this issue ``` @RequestMapping("/demo") public interface DemoService { @GetMapping("/{id}") String getId(@PathVariable Integer id); @DeleteMapping("/{id}") String deleteById(@PathVariable Integer id); } ``` ``` @DubboService public class DemoServiceImpl implements DemoService { private static final String PREFIX = "Hello "; @Override public String getId(Integer id) { return PREFIX + id; } @Override public String deleteById(Integer id) { return PREFIX + id; } ``` ### What you expected to happen When the path variable is consistent, the get method cannot appear together with the delete method Calling the get method will result in an error,but the delete method won't { "message": "Request method 'GET' not supported", "status": "405" } But when the path variable is different,one is `/get/{id}`, and the other is `/delete/{id}`,This will not cause any errors ``` @GetMapping("/get/{id}") String getId(@PathVariable Integer id); @DeleteMapping("/delete/{id}") String deleteById(@PathVariable Integer id); ``` ### Anything else _No response_ ### Are you willing to submit a pull request to fix on your own? - [ ] Yes I am willing to submit a pull request on my own! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
