How can the HomeController in Spring Batch Admin be replaced
<p>In a Spring Batch Admin environment I use a customized view for "/" and "/home". I do not need the overview of all available endpoints.</p>

<p>I would like to add some more elements to the <code>model</code> which is used for the view.</p>

<p>The controller for the endpoints is included in Spring Batch Admin as <code>org.springframework.batch.admin.web.util.HomeController</code> (<a href="https://github.com/spring-projects/spring-batch-admin/blob/master/spring-batch-admin-resources/src/main/java/org/springframework/batch/admin/web/util/HomeController.java" rel="nofollow" title="&#40;Source code&#41;">Source code</a>). Obviously I cannot just create an own controller and request the mappings because double mappings to the same end points are not allowed in Spring.</p>

<p>The <code>HomeController</code> is annotated with <code>@Controller</code> and is loaded automatically during initialization.</p>

<p>I have a solution such that I have an own class in the same package which gets higher priority than the one contained in Spring Batch Admin. However, this is not what I prefer as it is bad design IMHO.</p>

<p>This includes an undesired dependency on the implementation of a library. Also, I have to implement the two methods <code>setDefaultResources</code> and <code>setJsonResources</code> which are called by Batch Admin somehow, which are not interface methods.</p>

<p>I also do not know if the behaviour of having two classes which are the same is even well defined in Java.</p>

<p><strong>Question</strong>: Is there a simple way to avoid the original home controller from being instantiated or another way to inject my own model into the controller?</p>