Java 模板引擎
ClasspathLoader, 与 Spring 自动配置相同。在此之前,它会使用 DelegatingLoader 的实例,该实例在后台包含 ClasspathLoader 和 FileLoader,用于查找您的模板。 - 修改 FileLoader 以使用强制性的基目录参数。| ArtifactId | spring-boot 版本 |
|---|---|
| pebble-legacy-spring-boot-starter | 3.x.x |
| pebble-spring-boot-starter | 4.x.x |
.servlet 或 .reactive| 旧属性 | 新属性 |
|---|---|
| pebble.allowRequestOverride | pebble.servlet.allowRequestOverride |
| pebble.allowSessionOverride | pebble.servlet.allowSessionOverride |
| pebble.cache | pebble.servlet.cache |
| pebble.contentType | pebble.servlet.contentType |
| pebble.exposeRequestAttributes | pebble.servlet.exposeRequestAttributes |
| pebble.exposeSessionAttributes | pebble.servlet.exposeSessionAttributes |
| pebble.exposeSpringMacroHelpers | pebble.servlet.exposeSpringMacroHelpers |
| pebble.reactive.mediaTypes |
如需更多信息,请参阅 spring-boot int
暂无开放 Issues,或尚未同步最近议题。