A message resource bundle can be used for more than just localization—it also can save you time during application maintenance. For example, if you use the same text messages or labels throughout various parts of your web site or application, when one or more of these values need to change, you need make the change only in a single location. Even if you don't have internationalization requirements, you still should use resource bundles.
ResourceBundle除了可以实现国际化,还可以在其中定义一些类似全局变量的东西,以供Application访问。
博客介绍了消息资源包ResourceBundle的作用,它不仅可用于国际化,还能在应用维护时节省时间。若网站或应用多处使用相同文本消息或标签,修改时只需在一处更改。即便无国际化需求,也应使用资源包,还可在其中定义类似全局变量供应用访问。
9424

被折叠的 条评论
为什么被折叠?



