Legacy Knowledge Base
Published Sep. 10, 2025

PortletMVC4Spring, Spring Framework, and Liferay DXP

Written By

Joel Garman

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Question

Spring Framework 5 does not include support for Spring Portlet MVC.  Support for Spring Framework 4, including Portlet MVC support, will remain until 2020.  What is the future of Spring Portlet MVC and Liferay?

Resolution

Liferay adopted Spring Portlet MVC in March of 2019 and the project was renamed to PortletMVC4Spring.  PortletMVC4Spring is an open source project for developing portlet-based applications using the Spring Framework and MVC patterns.

PortletMVC4Spring is fully backed by Liferay.  Customers can report issues with the PortletMVC4Spring project in order to receive issue resolution and limited guidance as part of their subscription benefits.

PortletMVC4Spring requires JDK 8+ and Portlet API 3.0. In addition, it has been refactored and tested for use with version 5.1.x of the Spring Framework.

Impact to Liferay Platforms

Liferay DXP 7.1 and Above
PortletMVC4Spring can be used with Liferay DXP 7.1 fix pack 3 and higher.

Developing a Portlet Using PortletMVC4Spring for DXP 7.2
Migrating from Spring Portlet MVC to PortletMVC4Spring


Liferay DXP 7.0 and Below
PortletMVC4Spring requires a Portlet 3.0 compliant portal.  Previous versions of Spring Framework (4.X and 3.X) are compatible with Liferay DXP 7.0 and below.  Spring Portlet MVC should be used for these versions of Liferay.

Creating a Spring MVC Portlet for DXP 7.0
Spring MVC Portlet Sample Project for DXP 7.0

Additional Information 

Did this article resolve your issue ?

Legacy Knowledge Base