[오류] @Value(value annotation) 인식 불가

이경민·2022년 10월 31일
0

spring

목록 보기
20/20
import org.springframework.beans.factory.annotation.Value;

public class ItemImgService {

    @Value("${itemImgLocation}")
    private String itemImgLocation;
 }

application.properties에 "itemImgLocation=image/"로 경로 지정

오류 원인

import lombok.Value 사용하였다.

0개의 댓글