beetl-spring-boot-starter

beetl integration with springboot.

License

License

Categories

Categories

Spring Boot Container Microservices
GroupId

GroupId

com.cuisongliu
ArtifactId

ArtifactId

beetl-spring-boot-starter
Last Version

Last Version

1.5
Release Date

Release Date

Type

Type

jar
Description

Description

beetl-spring-boot-starter
beetl integration with springboot.
Project URL

Project URL

https://github.com/cuisongliu/beetl-boot-starter
Source Code Management

Source Code Management

https://github.com/cuisongliu/beetl-boot-starter

Download beetl-spring-boot-starter

How to add to project

<!-- https://jarcasting.com/artifacts/com.cuisongliu/beetl-spring-boot-starter/ -->
<dependency>
    <groupId>com.cuisongliu</groupId>
    <artifactId>beetl-spring-boot-starter</artifactId>
    <version>1.5</version>
</dependency>
// https://jarcasting.com/artifacts/com.cuisongliu/beetl-spring-boot-starter/
implementation 'com.cuisongliu:beetl-spring-boot-starter:1.5'
// https://jarcasting.com/artifacts/com.cuisongliu/beetl-spring-boot-starter/
implementation ("com.cuisongliu:beetl-spring-boot-starter:1.5")
'com.cuisongliu:beetl-spring-boot-starter:jar:1.5'
<dependency org="com.cuisongliu" name="beetl-spring-boot-starter" rev="1.5">
  <artifact name="beetl-spring-boot-starter" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.cuisongliu', module='beetl-spring-boot-starter', version='1.5')
)
libraryDependencies += "com.cuisongliu" % "beetl-spring-boot-starter" % "1.5"
[com.cuisongliu/beetl-spring-boot-starter "1.5"]

Dependencies

compile (1)

Group / Artifact Type Version
com.cuisongliu : beetl-spring-boot-autoconfigure jar 1.5

Project Modules

There are no modules declared in this project.

license license

Beetl integration with beetl

Beetl-Spring-Boot-Starter 帮助你集成通用 Beetl 到 Spring Boot。

Beetl-Spring-Boot-Starter will help you use Beetl with Spring Boot.

How to use

maven

在pom.xml加入nexus资源库(解决中国访问慢的问题,已经加入中央仓库)

Add the following nexus repository(fix china access slow problem,already append to central nexus.) to your pom.xml:

<repositories>
    <repository>
        <id>nexus</id>
        <name>nexus</name>
        <url>http://maven.cuisongliu.com/content/groups/public</url>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
</repositories>

在pom.xml加入依赖

Add the following dependency to your pom.xml:

<dependency>
   <groupId>com.ibeetl</groupId>
   <artifactId>beetl</artifactId>
   <version>2.7.24</version>
</dependency>
<dependency>
   <groupId>com.cuisongliu</groupId>
   <artifactId>beetl-spring-boot-starter</artifactId>
   <version>1.5</version>
 </dependency>

gradle

在build.gradle加入nexus资源库(解决中国访问慢的问题,已经加入中央仓库)

Add the following nexus repository(fix china access slow problem,already append to central nexus.) to your build.gradle:

allprojects {
    repositories {
        mavenLocal()
        maven { url "http://maven.cuisongliu.com/content/groups/public" }
        mavenCentral()
        jcenter()
    }
}

在build.gradle加入依赖

Add the following dependency to your build.gradle:

compile "com.ibeetl:beetl:2+"
compile "com.cuisongliu:beetl-spring-boot-starter:1+"

springboot properties set

在application.properties 或者application.yml加入[相关参数]

at application.properties or application.yml append some properties.

properties Defaults
spring.beetl.suffix .btl
spring.beetl.content-type text/html;charset=UTF-8
spring.beetl.root classpath:/templates
spring.beetl.order 0
spring.beetl.function-root /functions
spring.beetl.function-suffix fn
spring.beetl.tag-root /tags
spring.beetl.tag-suffix tag
spring.beetl.placeholder-start ${
spring.beetl.placeholder-end }
spring.beetl.statement-start <%
spring.beetl.statement-end %>
spring.beetl.auto-check false
spring.beetl.properties null

Example

spring:
  beetl:
    suffix: .html
    auto-check: true
    properties:
        FNP.tool: com.cuisongliu.core.util.ToolUtil

Acknowledgments

Beetl.

Versions

Version
1.5
1.4
1.3
1.2
1.1
1.0