When adding a resource from to be served from the fjage WebServer, a getClass().getResource(resource) will only find a single resource that is available. So if we do websvr.add("/dashboards", "/dashboards") it will find the first resource in all of the jars with a resource called /dashboards and only serve that.
But it's possible that multiple jars have resources with the same name and that won't get added here. This change iterates through all resources with the given name and adds them to the same path.
When adding a resource from to be served from the fjage
WebServer
, agetClass().getResource(resource)
will only find a single resource that is available. So if we dowebsvr.add("/dashboards", "/dashboards")
it will find the first resource in all of the jars with a resource called/dashboards
and only serve that.But it's possible that multiple jars have resources with the same name and that won't get added here. This change iterates through all resources with the given name and adds them to the same path.