I want to extend the features of Spring Boot Admin's UI, by bootstrapping custom pages, menus etc. However, I don't want to modify SBA's JAR directly, because this would imply having to apply my modifications to it every time a new version comes out.
The approach I am currently considering is to modify HTML pages on the fly as they are rendered by the resource handlers of SBA (class AdminServerWebConfiguration
). I would register my own resource handler in the registry
, let SBA render it, then modify the render on the fly and finally return the result.
My understanding of how I would do such a thing is very limited. Can anyone point me to pattern to achieve this ?
Currently the best way to modify the ui is to copy the spring-boot-admin-server-ui project, do your modifications and include your own ui-jar instead of the original one.