For details on how to approach it see [SOLVED] Overriding Module Fragments in other modules
This involves:
-
Creating a PageRequestMapper that maps the referenceapplication/login.page to a new url
-
Creating a custom page, but do not use the @Controller tag on the page controller as Spring does not allow multiple controllers to be mapped to the same url