简体   繁体   English

ResourceBundle.getBundle和Websphere

[英]ResourceBundle.getBundle and Websphere

I have some code like this: 我有一些这样的代码:

 resourceBundle = ResourceBundle.getBundle(
      "com.something.whatever.txt", getLocale());

This code is part of an app which is run by websphere. 此代码是由Websphere运行的应用程序的一部分。

com.something.whatever.properties is a text file which is then jarred and deployed. com.something.whatever.properties是一个文本文件,然后将其com.something.whatever.properties并部署。

The question is: Can I easily override it ? 问题是:我可以轻松地覆盖它吗? somehow redeploy just this file rather than the whole app ? 以某种方式重新部署此文件而不是整个应用程序?

是的,可以。但是我强烈建议您在尝试之前重新启动应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 java ResourceBundle.getBundle()不明确 - java ResourceBundle.getBundle() undeterministic 如何忽略ResourceBundle.getBundle中的defaultLocale? - How to ignore defaultLocale in ResourceBundle.getBundle? 为什么ResourceBundle.getBundle(String str)无法从Websphere中的默认属性文件中找到值 - Why ResourceBundle.getBundle(String str) cannot find values from default properties file in Websphere Java ResourceBundle.getBundle缺少资源异常 - Java ResourceBundle.getBundle missing resource exception ResourceBundle.getBundle(class,locale)没有获得默认捆绑 - ResourceBundle.getBundle(class,locale) don't get default Bundle 为什么ResourceBundle.getBundle(String,Locale)忽略了Locale? - Why is ResourceBundle.getBundle(String, Locale) ignoring the Locale? ResourceBundle.getBundle() 访问属性文件的默认路径是什么 - What is the default path of ResourceBundle.getBundle() to access the properties file 在Android应用程序中使用ResourceBundle.getBundle()的正确方法是什么? - What is the proper way to use ResourceBundle.getBundle() in an Android application? Java ResourceBundle.getBundle如何加载属性文件? - How does Java ResourceBundle.getBundle load properties file? 无法使用 ResourceBundle.getBundle() 加载 ResourceBundle 找不到基本名称的包,区域设置 en_US - Unable to load ResourceBundle with ResourceBundle.getBundle() Can't find bundle for base name , locale en_US
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM