@value (1) 썸네일형 리스트형 @Value 어노테이션 @Value 어노테이션(SpEL 이용)@Componentpublic class Sample{@Value("Some currency")private String currency;} @Componentpublic class Sample{@Value("#{configuration.environment}")private String environment;@Value("#{configuration.getCountry()}")private String country; @Autowiredpublic void printCountry(@Value("#{configuration.getCountry()}" String country)}System.out.println(count); =>메소드 및 생성자 인자에 @Value를.. 이전 1 다음