简体   繁体   English

在春季实施资源包

[英]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) . Spring对资源束的抽象称为MessageSource(3.8.2。使用MessageSources进行国际化) Google for it and you would find lot of tutorials on it (Best one is Spring's own reference doc). Google,它上有很多教程(最好的是Spring自己的参考文档)。 You can follow this tutorial to use Java's resource bundle. 您可以按照本教程使用Java的资源包。

And follow this blog to use it a web app 并关注此博客以将其用作网络应用

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

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