It’s an old backend service and we would have to change many things. So if any other way possible to solve this without context-path, it would be great.
this is the (default) method of specifying the mapping of a Spring Boot / Servlet application.
If this is not an option for you I would think of a possibility to solve this ‘outside’ the application.
For example with a reverse proxy. Or something that provides some kind of path rewrite.