https://www.mkyong.com/spring/spring-propertysources-example/
주의)xml에서 <import resource:classpath~~~>로는 properties 파일을 읽어 올 수 없다.
import는 bean설정파일(xml)만 읽어올 수 있다.
'SPRING' 카테고리의 다른 글
@Controller VS @RestController, ResponseEntity (0) | 2017.12.06 |
---|---|
Spring 4 MVC Form Validation and Resource Handling (Annotations) (0) | 2017.12.05 |
Spring 프로포티(properties) 파일 @Value (0) | 2017.11.28 |
Spring Batch- MultiResourceItemReader & HibernateItemWriter example (0) | 2017.11.27 |
Spring Batch- Read an XML file and write to a CSV file (0) | 2017.11.23 |