How to integrate Surf into Spring MVC application
This article describes features for integration Surf in Spring Maven project.
Just to let you know if you were not using Maven and you needed to install SURF in to your web application all you need to do is just drop the below mentioned jars into your WEB-INF/lib directory of your project.
The jars to be included are:
You can download these files from the Alfresco repository or you search in WEB-INF/lib inside your installation of Alfresco or inside yourAlfresco SDK.
Now make sure that your application has the following imports in your web mvc application as :
<import resource=”classpath*:org/alfresco/web/scripts/*-context.xml” />
<import resource=”classpath*:org/alfresco/web/framework/*-context.xml” />
Once you are done with the above steps you just need to restart your application server and SURF will get bootstrapped and available as view resolver.
Now to achieve the same in MAVEN all you need to do is have the below mentioned dependency into your Maven powered web application:
and the above mentioned import statements.
Now run mvn install and the build process will get all the dependencies related to SURF.
So integration Surf in Spring is ready.