Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
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.