문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 | 다음 판 양쪽 다음 판 | ||
java:classpathresource [2019/11/22 13:26] kwon37xi |
java:classpathresource [2019/11/22 13:28] kwon37xi |
||
---|---|---|---|
줄 12: | 줄 12: | ||
===== SpringFramework Resource 사용 ===== | ===== SpringFramework Resource 사용 ===== | ||
* [[: | * [[: | ||
+ | * [[https:// | ||
<code java> | <code java> | ||
Resource targetFileResource = new ClassPathResource("/ | Resource targetFileResource = new ClassPathResource("/ | ||
File targetFile = targetFileResource.getFile(); | File targetFile = targetFileResource.getFile(); | ||
+ | |||
+ | // 혹은 | ||
+ | File employeesFile = ResourceUtils.getFile(" | ||
</ | </ | ||
+ | |||
* **classpath** 상의 리소스에 대해서 '' | * **classpath** 상의 리소스에 대해서 '' | ||
* 따라서 '' | * 따라서 '' | ||
+ | |||
+ | ===== 참고 ===== | ||
+ | * [[https:// |