上一主题: 配置 WebView 选项下一主题: 如何配置和监控 APM WebView 性能


配置 WebView 应用程序上下文路径

您还可以为 WebView 安装配置应用程序上下文路径。 此路径将附加到 WebView 的完全限定主机名和端口号之后,以形成用于访问 WebView 的 URL。 此功能允许用户为 WebView 定义“应用程序名称”。

在没有上下文路径的情况下访问 WebView:

在配置了上下文路径时访问 WebView:

例如,如果 Context_path 定义为 webview,且 introscope.webview.tcp.port 属性设置为默认值 8080,则通过以下 URL 访问 WebView:

http://<Server_name>:8080/webview/

您可在 WebView 属性文件中使用 introscope.webview.context.path 属性配置 WebView 上下文路径。 有关详细信息,请参阅 introscope.webview.context.path。 在定义上下文路径属性后重新启动 WebView。