public static Resource temporaryFile ( String name , String extension ) throws IOException { return new FileResource ( File . createTempFile ( name , extension ) ) ; }
Creates a resource wrapping a temporary file