{new} UI Customization
The Microservice project contains a files/htdocs
folder with predefined stylesheets and
images.
These files can be used to tailor the look-and-feel of your microservice.
http://localhost:10000/helloWorld
The REST configuration section of your microservice configuration file can be used to tailor the header and footer on the pages:
The {@link oajr.BasicRestConfig} interface (which defines the default settings for {@link oajr.BasicRestServlet} pulls in this information using {@link oaj.config.vars.ConfigVar $C} and {@link oajr.vars.UrlVar $U} variables:
Note that the files/htdocs
directory is mapped to staticFiles
setting. This allows those files to be served up through the servlet through the URL
The theme files are externally accessible and can be modified to produce any look-and-feel you desire.
The microservice still works without the files directory. An embedded devops.css
is included in the jar as a default spreadsheet.
If you're testing out changes in the theme stylesheets, you may want to set the following system property that prevents caching of those files so that you don't need to restart the microservice each time a change is made: