Configuration
The Spring Boot starter is configured under the gotmpl4j prefix
(Gotmpl4jProperties).
1. Core properties
| Property | Default | Description |
|---|---|---|
|
|
Enables the auto-configuration. |
|
|
Location templates are resolved from. |
|
|
File-name suffix appended to a view/template name. |
|
|
Charset used when reading templates and writing output. |
|
|
Caches compiled template ASTs. Disable during development for live reload. |
|
(none) |
If set, only these view names are resolved by the view resolver. Set this when mixing template engines so gotmpl4j does not greedily claim every view. |
|
(none) |
Name of the |
2. Servlet view properties
Under gotmpl4j.servlet:
| Property | Default | Description |
|---|---|---|
|
|
Response content type. |
|
|
Expose request attributes to the model. |
|
|
Expose session attributes to the model. |
|
|
Allow request attributes to override model attributes. |
|
|
Allow session attributes to override model attributes. |