jsf - 阅读 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>
解决方案
推荐阅读
- ios - 如何在 Swift 中正确实现不同视图控制器之间的协议和委托?
- flutter - SharedPreferences 在真实设备 FLUTTER 上不起作用
- c++ - 对 C++ 中的类使用 warn_unused 属性
- python - 如何从pyspark中的字符串中删除特定字符?
- arm - RTT 查看器未识别 Segger RTT 控制块
- linux - 下沉到虚拟 v4l2 设备
- python - 如何加载 TensorFlow 检查点,并将其转换为 Keras 模型?
- python - 我在哪里可以找到描述许多数值线性代数包使用的精确算法的文档?
- html - 标题属性未显示完整内容
- java - 服务意图 getaction 和 getextra 返回 null