Score
0
Watch 2 Star 6 Fork 3

luas / enjoy-spring-boot-starterJavaApache-2.0

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
enjoy模板引擎starter,支持全部属性自定义配置,模板引擎覆盖性配置 spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

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+

起步

<dependency>
    <groupId>com.xbdframework.boot</groupId>
    <artifactId>enjoy-spring-boot-starter</artifactId>
    <version>版本号</version>
</dependency>

属性配置

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提供默认异常页面的扫描逻辑

Comments ( 4 )

Sign in for post a comment