Is there a way to change what should be home page for spring batch admin webapp?
I tried various solutions and nothing helps. What bothers me is that RequestMapping(value = { "/", "/home" }) is bidden to HomeController inside spring-batch-resources project, and I can't override that mapping.
I didn't know what would be necessary, I first tried redefining index.jsp page to farward to "/myHomePage" instead of "/home" that is by default. No result.
I tried defining my own controller to have same RequestMapping(value = "/"). No result. Ambiguous mappings exception.
I tried extending and overriding method from HomeController in my own controller, also without result, also ambiguous mappings exception.
I even added
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
NO RESULT! I don't care much about "/home" mapping I just want to override "/" mapping, or to forward it to my page, or something like that. Is there a way?
P.S. I can't change HomeController implementation, since it is spring-batch-resources dependency for spring-batch-admin-sample...
Aucun commentaire:
Enregistrer un commentaire