I would like to be able to have multiple web apps sharing a domain project and running under different contextPaths.
By setting server.contextPath=/webshop in a spring boot app I dont need to prefix all the RequestMappings.
I would like the webshop, admin, and main page to share a common domain project which contains all the entities and common services.
Maybe with something like?
public static void main(String[] args) { new SpringApplicationBuilder(Domain.class) .showBanner(false) .child(Admin.class, Webshop.class) .run(args); } My problem is how do I start a spring boot app with a common domain model, and then a couple of stand alone web apps with unique contextPaths?