Spring Batch 가이드(https://jojoldu.tistory.com/326?category=902551) 를 그대로 따라해보다 해당 오류가 발생했다.
Cannot find method 'value'
이와 연결되어 파라미터도 인식못하는 에러 발생
Could not autowire. No beans of 'String' type found.
삽질하다가 발견.. (감사합니다!! https://velog.io/@dabeen-jung/cannot-find-symbol-method-value-%EC%97%90%EB%9F%AC-%ED%95%B4%EA%B2%B0 )
원인: @Value의 import가 완전히 잘못되어있었음
현재 : import lombok.Value;
변경 : import org.springframework.beans.factory.annotation.Value;
자동완성을 주의하자!!
해결!!
'Learn > error' 카테고리의 다른 글
[error/IntelliJ, Spring boot] java: warning: source release 17 requires target release 17 (0) | 2022.09.19 |
---|---|
[error] Execution failed for task ':compileJava'. > invalid source release: 17 (0) | 2022.09.19 |