简体   繁体   中英

Implementation of resource bundle in spring

我在春季为该项目实施Resource bundle,该项目非常庞大并且具有复杂的文件夹结构,我对文件夹结构感到困惑,我想知道哪个文件应该放在哪里。基本上我正在使用属性文件和xml文件配置属性文件,然后在jsp中显示密钥。

Spring's abstraction of resource bundle is called MessageSource (3.8.2. Internationalization using MessageSources) . Google for it and you would find lot of tutorials on it (Best one is Spring's own reference doc). You can follow this tutorial to use Java's resource bundle.

And follow this blog to use it a web app

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM