Resource Handler
The Resource Handler Interface (See Interface here) allows you to create a resource handler that can be added to the Resource Handler Registry.
Methods
Example
In the above example, we are declaring that routes starting with /js/
should go to ./src/main/resources/static/js
and so on. We are also defining that the root routes (/(.*)
) should have an index file which is index.html
in ./src/main/resources/static
Our resolver for such requests is MandarineResourceResolver
, which is the default resolver by Mandarine. This resolver is used in Mandarine static content, but it can also be used for multiple handlers.
Last updated