목록Java/Spring (3)
차밍이
오류 메세지 Could not find method compile() for arguments Count not find method compile() 에러가 계속 발생되는 문제가 발생했다. 오류 해결 방법 stackoverflow 에 검색했더니 다음과 같이 나왔다. compile, runtime, testCompile, and testRuntime 는 Gradle 4.10 부터 없어졌다고 한다. 대신 implementation, runtimeOnly, testImplementation, and testRuntimeOnly를 사용하라고 한다. 원문 Note that the compile, runtime, testCompile, and testRuntime configurations introduced b..

목차 1. 마켓플레이스에서 설치하기 VScode의 Extensions에 들어가 Lombok을 설치한다. 2. gradle.build 파일에 lombok을 dependencies에 추가한다 dependencies { compile('org.springframework.boot:spring-boot-starter-data-jpa') compile('mysql:mysql-connector-java') compile('org.projectlombok:lombok') #

목차 문제 상황 MySQL DB와 객체를 연결하려는 작업에서 @Entity annotation이 먹지 않는 문제가 발생했다. import javax.persistence.Entity;을 통해서 import를 이미 해주었지만, 해당 import 부분 또한 에러가 발생하는 상황이다. 해결 방법 build.gradle에 들어가서 dependencies에 아래 내용을 추가해준다. dependencies { compile('org.springframework.boot:spring-boot-starter-data-jpa') compile('mysql:mysql-connector-java') }