Cognizant Interview Question

Have you worked on Spring MVC ? If Yes what is Aspect?

Interview Answer

Anonymous

Aug 25, 2016

A module which has a set of APIs providing cross-cutting requirements. For example, a logging module would be called AOP aspect for logging. An application can have any number of aspects depending on the requirement. In Spring AOP, aspects are implemented using regular classes (the schema-based approach) or regular classes annotated with the @Aspect annotation (@AspectJ style).