How to use Spring framework in AEM 6.5 | Community
Skip to main content
Level 3
February 20, 2023
Solved

How to use Spring framework in AEM 6.5

  • February 20, 2023
  • 2 replies
  • 2520 views

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.

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 Manu_Mathew_

@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.

2 replies

Jagadeesh_Prakash
Community Advisor
Community Advisor
February 20, 2023
Manu_Mathew_
Community Advisor
Manu_Mathew_Community AdvisorAccepted solution
Community Advisor
February 21, 2023

@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.