adspace


What is the use of @service annotation?

Answer Posted / Ram Avtar

The @Service annotation in Spring Framework indicates that a class represents a service layer. It's part of Spring's IoC (Inversion of Control) container, and when used on classes, Spring will perform dependency injection to create objects.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is lazy class?

490


How can you inject java collection in spring?

518


What is difference between @controller and @restcontroller in spring?

556