类 ApplicationTemp

java.lang.Object
org.springframework.boot.system.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
作者:
Phillip Webb
  • 构造器详细资料

    • ApplicationTemp

      public ApplicationTemp()
      Create a new ApplicationTemp instance.
    • ApplicationTemp

      public ApplicationTemp(Class<?> sourceClass)
      Create a new ApplicationTemp instance for the specified source class.
      参数:
      sourceClass - the source class or null
  • 方法详细资料

    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • getDir

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

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