Application context configuration

Each @Controller must be configured in an ApplicationContext configuration file. It is just a standard that the name of the configuration file is based on the controller itself. Some of the controllers of OCS are SignUpController with its configuration found in sign-up-controller-portlet.xml and OrderController with its own order-controller-portlet.xml. The content is plainly typical Spring 4.x MVC container configurations.

Portlet configuration

All portlet properties and information must be included in this file. The portal will be looking for this file during deployment:

<?xml version="1.0"?> <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...

Get Spring MVC Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.