有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!


共 (2) 个答案

  1. # 1 楼答案

    here

    PropertyPlaceholderConfigurer

    We use PropertyPlaceholderConfigurer when we need to load some propertyfiles wose properties are used in applicationcontext.xml of spring. We can use the properties directly using JSTL expressions. reloadableresourcebundlemessagesource

    We use reloadableresourcebundlemessagesource when we need to use the property files outside the applicationcontext.xml. The properties loaded using reloadableresourcebundlemessagesource are not accessible in applicationcontext.xml

  2. # 2 楼答案

    PropertyPlaceHolderConfigure,用于在应用程序上下文中或在带有@value的代码中使用的属性文件

    ResourceBundleMessageSource用于国际化&;要在jsp direct内或通过在组件内连接消息资源bean从代码中向用户显示的消息的本地化(i18n)