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.
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" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/ portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/ portlet-app_2_0.xsd" version="2.0"> <portlet> <portlet-name>hello-controller<...