Could not find org.springframework.boot:spring-boot-starter-velocity

后端 未结 2 823
一生所求
一生所求 2020-12-10 19:05

I\'m new to spring and trying to use velocity with spring boot.

Here is my build.gradle

repositories {
    mavenCentral()
}

plugins {
   id \'org.sp         


        
相关标签:
2条回答
  • 2020-12-10 19:28

    Most probably you forgot to include Spring's dependency management plugin.

    apply plugin: 'io.spring.dependency-management'

    Also make sure that you have specified the Spring Boot version to use:

    plugins { id 'org.springframework.boot' version '2.0.4.RELEASE' }

    See https://docs.spring.io/spring-boot/docs/2.0.4.RELEASE/gradle-plugin/reference/html/ for more information

    0 讨论(0)
  • 2020-12-10 19:33

    Spring Boot 2.0 depends on Spring Framework 5.0. Which dropped support for Velocity. Hence in Spring Boot 2 there is no more support for Velocity.

    If you really need Velocity you would have to stick with Spring Boot 1.5. If you can move to something like Freemarker or Mustache you are probably better of using that.

    0 讨论(0)
提交回复
热议问题