Add VelocityLanguageDriverConfig #72
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes gh-66
This PR includes following main changes.
Adding the
VelocityLanguageDriverConfig
Adding the
VelocityLanguageDriverConfig
for configuring a mybatis-velocity and template engine of Velocity. This change keep backward compatibility with mybatis-thymeleaf 2.0 or under.Specify a Velocity template engine configuration
Following settings are same mean.
Previous version(2.0):
resource.default_encoding=Windows-31J
New version(2.1+):
Specify additional context attributes
Following settings are same mean.
Previous version(2.0):
additional.context.attributes=attribute1:com.example.Attribute1,attribute2:com.example.Attribute2
New version(2.1+):
Specify user defined directives
Previous version(2.0):
userdirective=com.example.MyDirective,com.example.CustomDirective
New version(2.1+):
Add commons-text as dependency artifact
I've added the Apache
common-text
for supporting the type-safe configuration properties.Drop commons-lang3
I've removed the Apache
commons-lang3
as project dependency artifact becauseStringUtils
is no longer used by this change.Discontinue use of deprecated properties
The mybatis-velocity 2.0 used deprecated properties as follow: