类 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.
    从以下版本开始:
    2.0.0
    • 方法详细资料

      • getDir

        public File getDir​(String subDir)
        Return a sub-directory of the application temp.
        参数:
        subDir - the sub-directory name
        返回:
        a sub-directory
      • getDir

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