heoblitz
Blitz.dev
heoblitz
전체 방문자
오늘
어제
  • 분류 전체보기 (36)
    • iOS Dev (22)
      • iOS (3)
      • Swift (7)
      • Testing (3)
      • Reactive (2)
      • Architecture (2)
      • Layout (1)
    • PS (4)
      • Algorithm (4)
    • Other (9)
      • Springboot (3)
      • Linux (1)
      • Python (1)
      • Java (1)
      • React (1)

블로그 메뉴

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록

공지사항

인기 글

태그

  • URLSession
  • chrome-extension
  • 오픈소스
  • codingtest
  • Git
  • ARC
  • IOS
  • gradle
  • github
  • intellij
  • swift 5
  • Code Review
  • Test Code
  • SWIFT
  • xcode
  • swift 윈도우
  • springboot
  • RxSwift
  • XCTest
  • java

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
heoblitz

Blitz.dev

Other/Springboot

IntelliJ 에서 Gradle 다운 그레이드 하기

2020. 2. 20. 00:02

 

스프링 부트 테스트 코드를 작성하고 실행했을 때 아래와 같은 오류가 발생했습니다.

variable name not initialized in the default constructor

 

 

그 이유는 예제로 진행한 환경이 Spring 2.1.7, Gradle 4 버전에서 진행했기 때문입니다.

 

필자가 설치된 환경은 Gradle 5 버전 이므로, 상황에 맞게 설정을 바꾸는 방법도 있었지만

 

Gradle 4 버전으로 다운그레이드 해서 문제를 해결하기로 했습니다.

 

 

 

아래 코드를 IntelliJ 터미널에서 입력하면 됩니다.

gradlew wrapper --gradle-version "4.10.2"

// 다운그레이드할 버전을 입력하면 된다

 

 

 

 

* git clone 으로 프로젝트를 받았을 때에는 gradlew 실행 권한이 제거되어 있습니다.

sudo chmod +x ./gradlew

혹은 깃 프로젝트에서 실행 권한을 부여할 수 있습니다.

git update-index --chmod=+x ./gradlew

 

출처 : https://github.com/jojoldu/freelec-springboot2-webservice/issues/2

'Other > Springboot' 카테고리의 다른 글

IntelliJ "No tests found for given includes" 오류 해결  (0) 2020.02.24
IntelliJ IDEA 에서 git 저장소에 있는 .idea 제거하기  (0) 2020.02.18
    'Other/Springboot' 카테고리의 다른 글
    • IntelliJ "No tests found for given includes" 오류 해결
    • IntelliJ IDEA 에서 git 저장소에 있는 .idea 제거하기
    heoblitz
    heoblitz
    iOS, Swift 관련 포스팅을 주로 작성합니다.

    티스토리툴바