首页 > 解决方案 > 阅读 faces-config.xml 中的 Websphere Liberty bootstrap.properties

问题描述

有没有办法通过 java server faces 层上的 faces-config.xml 读取 Websphere Liberty bootstrap.properties?

我的应用程序正在 faces-config 中静态填充几个变量,但我们想使用 Liberty 属性中的外部文件来修改这些变量并在 faces-config.xml 中使用它们,如下例所示,但是当 Web 应用程序正在运行变量没有被渲染:

引导程序属性:

bootstrap.csc.ds.serverproviders=PRODUCTION 9.4;https://0.0.000.000:31116/twsd/

jsf faces-config.xml:

<value>"${bootstrap.csc.ds.serverproviders}"</value>

标签: jsfwebsphere-libertyproperties-filefaces-config

解决方案


推荐阅读