I have to ask because none of the answers I found can help me to solve my problem.
I have controller
@RestController
@RequestMapping("/path")
DefaultController
I want to override its methods because one specific customer has specific logics, with controller
@RestController
@RequestMapping("/path")
CustomController
that can have exactly same methods signatures or overriding methods with RequestBody extending the original requests.
Solutions don't work because Spring detects a double mapping for methods, the famous "Ambiguous mapping".
Has anybody any idea how i could solve the situation?
I want literally plug custom implementations of controllers, only where I need, overriding only methods I need, without altering request path. Customizing Services is not enough, because sometimes I have to pass RequestBody with additional fields
We are using springboot 2.4.7, spring 5.3.8
Thanks in advance
I was finally able to solve my problem. I did this, if anybody interested