Giter Club home page Giter Club logo

spring-boot-velocity-starter's Introduction

本组件主要功能是让1.4.x以上版本的springboot支持velocity模板

实现

该组件的实现步骤可以参考博文:【终极方案】Springboot1.5以上版本如何支持Velocity模板

使用方式

pom引入:

       <dependency>
            <groupId>com.sadeychai.boot</groupId>
            <artifactId>spring-boot-velocity-starter</artifactId>
            <version>1.0.0-SNAPSHOT</version>
        </dependency>

application.properties配置:

    spring.velocity.enabled=true
    spring.velocity.cache= false
    spring.velocity.charset=UTF-8
    spring.velocity.properties.input.encoding=UTF-8
    spring.velocity.properties.output.encoding=UTF-8
    spring.velocity.check-template-location=true
    spring.velocity.resource-loader-path=classpath:/templates/
    spring.velocity.suffix=.vm
    spring.velocity.toolbox-config-location=/velocity/toolbox.xml
    #layout支持
    spring.velocity.layout-view-resolver= true
    spring.velocity.layout-url= /src/page/layout/default.vm
    spring.velocity.screen-content-key= content

spring-boot-velocity-starter's People

Contributors

sadeychai avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

qincloudshaw

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.