Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Should I use Spring MVC in AEM Sling

Avatar

Level 3

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?

1 Accepted Solution

Avatar

Correct answer by
Level 10

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. 

View solution in original post

2 Replies

Avatar

Community Advisor

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

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

Thanks,

Peter

Avatar

Correct answer by
Level 10

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.