• 카테고리

    질문 & 답변
  • 세부 분야

    백엔드

  • 해결 여부

    미해결

오류가 뜹니다

20.08.12 15:50 작성 조회수 114

0

junit을 버전4로 설정하고 작성했는데 이런 오류가 뜹니다 문제가 뭔가요 ㅠㅠ

답변 1

답변을 작성해보세요.

0

안녕하세요. 이상현님

Junit4 버전이 잘 설정이 안된 것 같아요^^!

build.gradle를 메뉴얼 v1.7에 있는 내용, 그러니까 다음과 같이 수정하고 진행해주세요.

만약 그래도 잘 안되면 전체 코드를 압축해서 zipkyh@naver.com으로 메일 보내주세요^^!

plugins {
	id 'org.springframework.boot' version '2.1.9.RELEASE'
	id 'java'
}

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

ext["h2.version"] = "1.4.199" //h2 데이터베이스 버전 지정

group = 'jpabook'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'

configurations {
	compileOnly {
		extendsFrom annotationProcessor
	}
}

repositories {
	mavenCentral()
}

dependencies {
	implementation 'org.springframework.boot:spring-boot-starter-web'
  implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
	implementation 'org.springframework.boot:spring-boot-starter-data-jpa'

	compileOnly 'org.projectlombok:lombok'
	runtimeOnly 'com.h2database:h2'
	annotationProcessor 'org.projectlombok:lombok'
	testImplementation 'org.springframework.boot:spring-boot-starter-test'

}