类:RuntimeConfigController

java.lang.Object
com.google.adk.web.controller.RuntimeConfigController

@RestController public class RuntimeConfigController extends Object
用于开发用户界面(dev UI)的运行时配置;该配置会覆盖静态资源中包含的相应配置文件。 adk.web.backend-url 可以将用户界面(UI)指向浏览器能够访问该服务器的地址。被打包的文档会被合并(而不是被替换),因此用户在后续版本中获得的任何新功能或设置都会保留下来。
  • 构造函数概述

    Constructors
    Constructor
    Description
    RuntimeConfigController(org.springframework.core.io.ResourceLoader resourceLoader, com.fasterxml.jackson.databind.ObjectMapper objectMapper, @Nullable String webUiDir, BackendUrl backendUrl)
    读取捆绑在一起的配置文件。 resourceLoader……或来自…… webUiDir 如果已设置(即该值不为空)。
  • 方法概述

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<Map<String,Object>>
    用于提供捆绑配置文件(bundled config)。 backendUrl 该值是从配置文件中获取的(即在设置该参数时被记录下来的)。

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造函数详细信息

    • RuntimeConfigController

      @Autowired public RuntimeConfigController(org.springframework.core.io.ResourceLoader resourceLoader, com.fasterxml.jackson.databind.ObjectMapper objectMapper, @Value("${adk.web.ui.dir:#{null}}") @Nullable String webUiDir, BackendUrl backendUrl)
      读取捆绑在一起的配置文件。 resourceLoader……或来自…… webUiDir 如果已设置(即该值不为空)。
  • 方法详细信息(Method Details)

    • runtimeConfig

      @GetMapping(value="/dev-ui/assets/config/runtime-config.json", produces="application/json") public org.springframework.http.ResponseEntity<Map<String,Object>> runtimeConfig()
      用于提供捆绑配置文件(bundled config)。 backendUrl 该值是从配置文件中获取的(即在设置该参数时被记录下来的)。