복붙노트

[SPRING] org.springframework.boot를 찾을 수 없습니다 : spring-boot-starter-velocity

SPRING

org.springframework.boot를 찾을 수 없습니다 : spring-boot-starter-velocity

나는 봄이 새롭고 봄 부츠와 함께 속도를 사용하려고합니다.

여기에 내 build.gradle입니다.

repositories {
    mavenCentral()
}

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

apply plugin: 'java'
apply plugin: 'eclipse-wtp'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'war'

dependencies {
    compile('org.springframework.boot:spring-boot-starter-web')
    compile('org.springframework.boot:spring-boot-starter-velocity')
    runtime('org.springframework.boot:spring-boot-devtools')
    providedRuntime('org.springframework.boot:spring-boot-starter-tomcat')
    testCompile('org.springframework.boot:spring-boot-starter-test')
}

./gradlew bootRun으로 동기화 할 때 다음과 같은 오류가 발생했습니다.

> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':compileClasspath'.
> Could not find org.springframework.boot:spring-boot-starter-velocity:.

해결법

  1. ==============================

    1.Spring Boot 2.0은 Spring Framework 5.0에 의존한다. Velocity에 대한 지원이 중단되었습니다. 그러므로 Spring Boot 2에서는 Velocity를 더 이상 지원하지 않습니다.

    Spring Boot 2.0은 Spring Framework 5.0에 의존한다. Velocity에 대한 지원이 중단되었습니다. 그러므로 Spring Boot 2에서는 Velocity를 더 이상 지원하지 않습니다.

    Velocity가 정말로 필요한 경우에는 Spring Boot 1.5를 사용해야합니다. Freemarker 나 Mustache와 같은 것으로 옮길 수 있다면 아마도 그것을 사용하는 것이 좋습니다.

  2. ==============================

    2.아마 당신은 Spring의 의존성 관리 플러그인을 포함하는 것을 잊었다.

    아마 당신은 Spring의 의존성 관리 플러그인을 포함하는 것을 잊었다.

    플러그인 적용 : 'io.spring.dependency-management'

    또한 사용할 Spring 부트 버전을 지정했는지 확인하십시오.

    플러그인 {     id 'org.springframework.boot'version '2.0.4.RELEASE' }

    자세한 내용은 https://docs.spring.io/spring-boot/docs/2.0.4.RELEASE/gradle-plugin/reference/html/을 참조하십시오.

  3. from https://stackoverflow.com/questions/51721657/could-not-find-org-springframework-bootspring-boot-starter-velocity by cc-by-sa and MIT license