如何向Liferay添加其他属性。向Liferay添加其他语言属性
我不想覆盖现有的属性。我想在现有的属性
我这样尝试的顶部添加新的特性,但没有运气
<portlet>
<portlet-name>search</portlet-name>
<display-name>Search</display-name>
<portlet-class>org.springframework.web.portlet.DispatcherPortlet</portlet-class>
<init-param>
<name>contextConfigLocation</name>
<value>/WEB-INF/spring-config/search-portlet.xml</value>
</init-param>
<init-param>
<name>config-template</name>
<value>/WEB-INF/view/search/configuration.jsp</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>view</portlet-mode>
</supports>
<resource-bundle>Language</resource-bundle>
.............
</portlet>
I have placed Language.properties file under src/main/resources/
然而,当我尝试打印<liferay-ui:message key="test-lang-msg" />
我没有得到的值
Language.properties文件 test-lang-msg=Testing Language Properties File
你会得到什么:没有,或只是关键,例如“测试琅味精”? –