Upgrading a Spring Portlet MVC Portlet

Upgrading Portlets
Step 5 of 6

Upgraded portlets that use Spring Portlet MVC should be migrated to use PortletMVC4Spring. The main reason is that PortletMVC4Spring is maintained for compatibility with the latest versions of the Spring Framework.

For more information on PortletMVC4Spring, see its dedicated section of articles. For specific information on migrating a portlet using Spring Portlet MVC to PortletMVC4Spring, see the Migrating to PortletMVC4Spring article.

Once you’ve migrated your portlet to leverage the PortletMVC4Spring framework, you must also adapt your Liferay-specific APIs and dependencies. To do this, complete the following steps:

  1. Adapt the portlet to Liferay DXP 7.2’s API using the Liferay Upgrade Planner. When running the planner’s Fix Upgrade Problems step, many of the existing issues are autocorrected. For remaining issues, the planner identifies code affected by the new API and ways to adapt it.

  2. Resolve its dependencies

  3. Deploy it

After deploying the upgraded portlet, the server prints messages that indicate the following portlet status:

  • WAR processing
  • WAB startup
  • Availability to users

You’ve migrated your Spring Portlet MVC portlet to the updated PortletMVC4Spring framework, updated any additional APIs and dependencies, and deployed it to your Liferay DXP 7.2 instance. Your portlet’s upgrade process is complete!

« Upgrading a Servlet-based PortletUpgrading a Struts 1 Portlet »
¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 1