我知道有一種方法可以使用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