-
Notifications
You must be signed in to change notification settings - Fork 41.7k
Closed
Description
VelocityAutoConfiguration.java
right now the code is:
protected void applyProperties(VelocityEngineFactory factory) {
factory.setResourceLoaderPath(this.properties.getResourceLoaderPath());
factory.setPreferFileSystemAccess(this.properties.isPreferFileSystemAccess());
Properties velocityProperties = new Properties();
velocityProperties.putAll(this.properties.getProperties());
factory.setVelocityProperties(velocityProperties);
}After fix the code is:
protected void applyProperties(VelocityEngineFactory factory) {
factory.setResourceLoaderPath(this.properties.getResourceLoaderPath());
factory.setPreferFileSystemAccess(this.properties.isPreferFileSystemAccess());
Properties velocityProperties = new Properties();
velocityProperties.putAll(this.properties.getProperties());
velocityProperties.setProperty("input.encoding", this.properties.getCharset());
factory.setVelocityProperties(velocityProperties);
}added code:
velocityProperties.setProperty("input.encoding", this.properties.getCharset());so that we can use the "spring.velocity.charset" this is ugly, but right now i can use UTF-8
Metadata
Metadata
Assignees
Labels
type: bugA general bugA general bug