[BUG] <SpringMvcClientEventListener#buildApiPath return error apiPath when registering method without @ShenyuSpringMvcClient>
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
Expected Behavior
The name of the rule registered to shenyu admin should be /http/oauth/authorize
Steps To Reproduce
run module shenyu-examples-http
Environment
ShenYu version(s):2.6.1-SNAPSHOT
Debug logs
No response
Anything else?
No response
use this annotation with method
use this annotation with method
I don't think it's a good idea to use @ShenyuSpringMvcClient everywhere. In fact, the implementation logic of the SpringMvcClientEventListener#buildApiPath function is that if the client annotation doesn't get the path, it will demote the requestMapping annotation to get the path. what causes the problem is that before calling this function, if the variable methodShenyuClient is null, it assigns the beanShenyuClient to the variable methodShenyuClient.
a good idea to use
@ShenyuSpringMvcClienteverywhere. In fact, the implementation logic of theSpringMvcClientEventListener#buildApiPathfunction is that if the client
need discuss~