Annotation Type StaticFilesConfig


@Retention(CLASS) @Target(TYPE) public @interface StaticFilesConfig

Static file settings, compiled in.

Each attribute is the cn1.static.* key named beside it, and sets that key's value at the bottom of the configuration, so a properties file or the environment still override it. An attribute left at its default sets nothing.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    cn1.static.cacheControl: their Cache-Control header.
    cn1.static.index: the file a directory answers with.
    cn1.static.prefix: the path they're served under.
    cn1.static.root: the directory to serve.
  • Element Details

    • root

      String root
      cn1.static.root: the directory to serve.
      Default:
      ""
    • prefix

      String prefix
      cn1.static.prefix: the path they're served under.
      Default:
      ""
    • index

      String index
      cn1.static.index: the file a directory answers with.
      Default:
      ""
    • cacheControl

      String cacheControl
      cn1.static.cacheControl: their Cache-Control header.
      Default:
      ""