Should I use Spring MVC in AEM Sling | Community
Skip to main content
Level 2
October 16, 2015
Solved

Should I use Spring MVC in AEM Sling

  • October 16, 2015
  • 2 replies
  • 2185 views

Hi,

I am writing from scratch. I have two options:

1) Write my integration module which calls backend service using Spring MVC.

2) Write using Sling only and call service. 

Points need to take care while choosing one:

- If I have multiple form submit then I will end up with multiple servlet if it is sling instead of if it is Spring it will be taken care by Spring Dispacher.

- Spring has it's own Validation and binding feature. 

 

Wanted to check if I can still get features like Spring using Sling itself or Spring is advisable?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

AEM does not come with Spring framework files.I would advice against it as it may lead to conflicts. Try and use Sling as much as possible. 

2 replies

Peter_Puzanovs
Community Advisor
Community Advisor
October 16, 2015

The best of Sling, powered by Spring == http://neba.io

Or to be even more precise: http://neba.io/userguide.html#springmvc

Thanks,

Peter

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

AEM does not come with Spring framework files.I would advice against it as it may lead to conflicts. Try and use Sling as much as possible.