Class ApplicationTemp


  • public class ApplicationTemp
    extends Object
    Provides access to an application specific temporary directory. Generally speaking different Spring Boot applications will get different locations, however, simply restarting an application will give the same location.
    Since:
    2.0.0
    • Method Detail

      • getDir

        public File getDir​(String subDir)
        Return a sub-directory of the application temp.
        Parameters:
        subDir - the sub-directory name
        Returns:
        a sub-directory
      • getDir

        public File getDir()
        Return the directory to be used for application specific temp files.
        Returns:
        the application temp directory