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

@@ -21,7 +21,7 @@
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd">
<mvc:resources mapping="/resources/**" location="/, classpath:/META-INF/">
<mvc:resources mapping="/resources/**" location="/, classpath:/META-INF/, [charset=ISO-8859-1]file:///tmp">
<mvc:resource-chain resource-cache="true" cache-manager="resourceCache" cache-name="test-resource-cache">
<mvc:resolvers>
<mvc:version-resolver>