A Spring Boot Starter for velocity including Spring's official and Alibaba's implementation , e.g, Layout , Tools supports.
<dependencies> ... <!-- Spring Boot Starter --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>com.alibaba.boot</groupId> <artifactId>velocity-spring-boot-starter</artifactId> <version>1.0.4.RELEASE</version> </dependency> ... </dependencies>
If your project failed to resolve the dependency, try to add the following repository:
<repositories> <repository> <id>sonatype-nexus</id> <url>https://oss.sonatype.org/content/repositories/releases</url> <releases> <enabled>true</enabled> </releases> </repository> </repositories>
Dependencies | Compatibility |
---|---|
Java | 1.7 + |
Servlet | 3.0 + |
Spring Boot | 1.4 + |
Alibaba Spring Velocity Context Support | 1.4.1.8 + |
Alibaba Spring Boot Web Support | 1.0.0 + |
Alibaba Spring WebMVC Support | 1.0.0 + |
Alibaba Spring Context Support | 1.0.0 + |