# enjoy-spring-boot-starter **Repository Path**: xbd521/enjoy-spring-boot-starter ## Basic Information - **Project Name**: enjoy-spring-boot-starter - **Description**: enjoy模板引擎starter,支持全部属性自定义配置,模板引擎覆盖性配置 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 7 - **Forks**: 4 - **Created**: 2019-01-03 - **Last Updated**: 2021-03-07 ## Categories & Tags **Categories**: template-engine, spring-boot-ext **Tags**: None ## README # enjoy-spring-boot-starter #### 介绍 enjoy模板引擎starter #### 框架版本 1. 1.x依赖于springboot 1.5.x版本,JDK1.7+ 2. 2.0.x依赖于springboot 2.0.x版本,JDK1.8+ #### 起步 ```xml com.xbdframework.boot enjoy-spring-boot-starter 版本号 ``` #### 属性配置 EnjoyProperties
配置项 说明 默认值
devMode 开发模式 false
prefix 模板前缀
suffix 模板后缀 .html
contentType contentType text/html
templatePath 模板路径 classpath:/templates/
checkTemplateLocation 模板路径检查 true
exposeRequestAttributes false
allowRequestOverride false
exposeSessionAttributes false
allowSessionOverride false
exposeSpringMacroHelpers false
sessionInView false
createSession false
#### 个性化配置 实现JFinalViewResolverCustomizer接口并注册为spring bean即可 #### 异常页面 EnjoyTemplateAvailabilityProvider提供默认异常页面的扫描逻辑