You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you set more than one mapping in the "mappings" config section, Dropwizard complains with a warning log because we are using the same servlet name for all mappings: Overriding the existing servlet registered with the name: assets
But then all mappings work correctly.
The text was updated successfully, but these errors were encountered:
We are mapping files in a "assets" dir inside the classpath (in a jar) to the "/" url, and a "static" dir in the filesystem (at the same level of the jar) to the "/static" url.
In code we just call bootstrap.addBundle(new ConfiguredAssetsBundle());
This config generates the warning, but then behaviour is correct: files inside the jar are available at the "/" url, and files inside the dir are available at "/static".
The logs we see are:
Registering ConfiguredAssetBundle with name: assets for path /*
Registering ConfiguredAssetBundle with name: assets for path /static/*
Overriding the existing servlet registered with the name: assets
When you set more than one mapping in the "mappings" config section, Dropwizard complains with a warning log because we are using the same servlet name for all mappings:
Overriding the existing servlet registered with the name: assets
But then all mappings work correctly.
The text was updated successfully, but these errors were encountered: