我知道有一种方法可以使用LiferayMVC来设置友好的URL,但是我如何使用Liferay的Spring Portlets来做到这一点?如何使我的Spring Portlet URL友好?
我现在有“丑陋”的网址,如:
http://localhost:8080/web/myportlet/home?p_p_state=normal&p_p_lifecycle=0&p_p_id=SpringTest_WAR_SpringTestportlet_INSTANCE_9wUi&p_p_col_count=3&p_p_col_id=column-1&_SpringTest_WAR_SpringTestportlet_INSTANCE_9wUi_action=main&p_p_mode=view
你可以使用'beanBinding'直接将这个值设置到你的模型中,并且可以很容易地避免这个丑陋的URL – Vivek