- StaticContentFeature (webserver.staticcontent) Configuration
Type: io.helidon.webserver.staticcontent.StaticContentFeature
Config keystatic-contentcontent_copyThis type provides the following service implementations:
io.helidon.webserver.spi.ServerFeatureProvider
Configuration options
| key | type | default value | description |
|---|---|---|---|
classpath | List of classpath based static content handlers. | ||
content-types | Map<string, MediaType> | Maps a filename extension to the response content type. To have a system-wide configuration, you can use the service loader SPI io.helidon.common.media.type.spi.MediaTypeDetector. This method can override io.helidon.common.media.type.MediaTypes detection for a specific static content handler. Handler will use a union of configuration defined here, and on the handler here when used from configuration. | |
enabled | boolean | true | Whether this feature is enabled, defaults to |
memory-cache | Memory cache shared by the whole feature. If not configured, files are not cached in memory (except for explicitly marked files/resources in each section). | ||
path | List of file system based static content handlers. | ||
sockets | string[] | Sockets names (listeners) that will host static content handlers, defaults to all configured sockets. Default socket name is This configures defaults for all handlers. | |
temporary-storage | Temporary storage to use across all classpath handlers. If not defined, a default one will be created. | ||
weight | double | 95.0 | Weight of the static content feature. Defaults to |
welcome | string | Welcome-file name. Default for all handlers. By default, we do not serve default files. |