Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!
SOLVED

How to use Spring framework in AEM 6.5

Avatar

Level 3

Hi all,

I am working in a project where I need to integrate payment gateway, for the same I require to use Spring framework. I am new to Spring framework of Java. And would like to know how to work with Spring in AEM 6.5.

 

Is there any dependency I need to add in the POM?

 

Thank you.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@janhavi_singh AEM may not be a spring framework but it can be an MVC

  • Model: The content is the Model
  • View: Sightly provides the rendering of the View.
  • Controller: Sling provides the controller - SlingModels

However, you may be able to inject dependencies and use them accordingly using sling servlets and services.

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

@janhavi_singh AEM may not be a spring framework but it can be an MVC

  • Model: The content is the Model
  • View: Sightly provides the rendering of the View.
  • Controller: Sling provides the controller - SlingModels

However, you may be able to inject dependencies and use them accordingly using sling servlets and services.