Support charset config by (static) resource location

This commit adds support for configuring static resource locations
with a charset to be applied to relative paths.
This commit is contained in:
Rossen Stoyanchev
2017-11-01 03:52:32 -04:00
parent db00669197
commit 369d33c3d0
13 changed files with 378 additions and 34 deletions

View File

@@ -639,6 +639,9 @@
"/, classpath:/META-INF/public-web-resources/" will allow resources to be served both from the web app
root and from any JAR on the classpath that contains a /META-INF/public-web-resources/ directory,
with resources in the web app root taking precedence.
For URL-based resources (e.g. files, HTTP URLs, etc) this property supports a special prefix to
indicate the charset associated with the URL so that relative paths appended to it can be encoded
correctly, e.g. "[charset=Windows-31J]http://example.org/path".
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>