https://github.com/Dev-Guccin
Guccin
https://github.com/Dev-Guccin
전체 방문자
오늘
어제
  • 분류 전체보기 (172)
    • 알고리즘 (140)
    • 삽질방지 (13)
    • SystemHacking (1)
    • 일상 (4)
    • 개발 (8)
    • 스프링 부트 REST API 개발일지 (5)
    • JPA (1)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

인기 글

태그

  • DFS
  • 다이나믹프로그래밍
  • 프로그래머스
  • 그리디
  • 이분 탐색
  • DP
  • heapq
  • Python
  • 백준
  • 스택
  • 유클리드호제법
  • 최단경로
  • python3
  • counter
  • 최대공약수
  • BFS
  • 유니온 파인드
  • 그래프
  • MST
  • 다이나믹 프로그래밍
  • 재귀함수
  • 큐
  • 파이썬
  • 12015
  • LIS
  • 최소힙
  • 다익스트라
  • 재귀
  • 백트래킹
  • 이분탐색

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
https://github.com/Dev-Guccin

Guccin

spring builder 오류 (error: cannot find symbol final .......)
삽질방지

spring builder 오류 (error: cannot find symbol final .......)

2022. 3. 3. 09:32

TDD기반의 api설계를 따라하던중 아래와 같은 에러가 떴다. 

멤버쉽 객체에 @Builder를 포함시켰음에도 이러한 에러가 떴다. 그래서 검색도중 찾아보니 Gradle로 라이브러리 관리를 한 경우 Test영역에서의 annotation이 적용되지 않아서 그렇다고 한다.

기존에는 build.gradle에 annotationProcessor만 존재했지만 testAnnotationProcessor를 새롭게 추가해주었다. 아마도 어노테이션 사용을 명시해주어야 test영역에서 어노테이션을 사용가능한거 같다.

annotationProcessor('org.projectlombok:lombok')
testAnnotationProcessor('org.projectlombok:lombok')

 

 

결과적으로 잘 적용되었다.

저작자표시 (새창열림)

'삽질방지' 카테고리의 다른 글

[python3] 행렬 다루기 (zip, *, 행렬)  (0) 2022.03.11
[python3] 문자열 형변환 (int, float, str, chr, ord)  (0) 2022.03.09
[python3] binary string to integer, integer to binary string  (0) 2022.02.17
파이썬 재귀 제한 풀기  (0) 2022.02.16
정규표현식  (0) 2021.09.02
    '삽질방지' 카테고리의 다른 글
    • [python3] 행렬 다루기 (zip, *, 행렬)
    • [python3] 문자열 형변환 (int, float, str, chr, ord)
    • [python3] binary string to integer, integer to binary string
    • 파이썬 재귀 제한 풀기
    https://github.com/Dev-Guccin
    https://github.com/Dev-Guccin
    https://github.com/Dev-Guccin

    티스토리툴바