Spring Boot @RequestMapping Inheritance
<p>since I need to serve two APIs which controllers are very similar in most of all cases and therefore I'd like to work with abstract controllers and sub controllers in order to achieve routes like:</p>

<p>/sym/products<br>
/frontend/products</p>

<p>Where the "sym" or "frontend" part should be generated by abstract superclasses (controllers) like</p>

<pre><code>@RestController
@CrossOrigin
@RequestMapping("sym")
public abstract class SymphonyBaseController {}
</code></pre>

<p>and</p>

<pre><code>@RestController
@CrossOrigin
@RequestMapping("frontend")
public abstract class FrontendBaseController {}
</code></pre>

<p>so I could do:</p>

<pre><code>@RestController
@CrossOrigin
@RequestMapping("products")
public class ProductController extends SymphonyBaseController {}
</code></pre>

<p>Btw: are these annotations (@RestController and @CrossOrigin) in the subclasses necessary anyway when annotated in super class already?)</p>

<p>My problem:
The routes are not being registered. I only get a single route: /products</p>

<p>How to fix this?</p>

<p>I'd really appreciate your help!
Thanks in advance,</p>

<p>Tim</p>