如何在liferay中获取默认页面网址?

ont*_*kal 1 liferay

我在portal-ext.properties中设置了默认页面URL.

default.landing.page.path = /组/客/家

然后使用Controller创建portlet:

public class UserPortrait extends MVCPortlet {


@Override
public void render(RenderRequest renderRequest, RenderResponse renderResponse) {

}

@Override
public void processAction(ActionRequest actionRequest, ActionResponse actionResponse) throws IOException, PortletException {

    super.processAction(actionRequest, actionResponse);
}
Run Code Online (Sandbox Code Playgroud)

}

现在,如何在processAction方法中获取登录页面URL.

Pan*_*iya 5

简单地说,用于com.liferay.portal.kernel.util.PropsUtil.get(String propertyName)从portal-ext.properties文件中获取任何属性.