adspace


How do you write an annotation?

Answer Posted / Pushpendra Raghuvanshi

To write an annotation in Spring Framework, you define a Java interface with the @interface modifier. This interface contains element types (such as type, target, document, and value) that provide attributes for the annotation.

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