[Spring] error: variable name not initialized in the default constructor

brandon·2024년 6월 6일

Lombok을 사용하려던 와중 error: variable name not initialized in the default constructor를 만났다.

해결:

공식 document 에 있는 dependencies를 복붙하고 intellij plugin에서 Lombok plugin 을 추가했다.

repositories {
	mavenCentral()
}

dependencies {
	compileOnly 'org.projectlombok:lombok:1.18.32'
	annotationProcessor 'org.projectlombok:lombok:1.18.32'
	
	testCompileOnly 'org.projectlombok:lombok:1.18.32'
	testAnnotationProcessor 'org.projectlombok:lombok:1.18.32'
}

profile
everything happens for a reason

0개의 댓글