Temp 폴더 접근하기

  • Spring application 에서 파일을 잠시 저장했다가 사용할때가 있다. 이럴때는 기본적으로 제공되는 temp dir 을 이용하자.
@Value("${java.io.tmpdir}")
privat String tempFolder;