spring 配置国际化资源文件的两种方式(转)

    xiaoxiao2021-03-25  57

    转自:http://blog.csdn.net/home_zhang/article/details/52489901 第二种还是不起作用 第一种将资源文件放在源码里面:

    那么配置文件信息如下:

    <!-- 读取国际化资源文件 == 资源文件在包里面,路径写全包名--> <bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource"> <property name="basenames"> <list> <value>cn/ddx/i18n/messages</value> </list> </property> </bean>
    转载请注明原文地址: https://ju.6miu.com/read-35946.html

    最新回复(0)