199k views
1 vote
What are the different points within a Spring application where weaving can be applied?

a) Compile-time, Load-time, Runtime
b) Controller, Model, View
c) Singleton, Prototype, Request, Session
d) Frontend, Backend, Middleware

User Haresh
by
8.1k points

1 Answer

6 votes

Final answer:

Weaving in a Spring application can be done at compile-time, load-time, and runtime.

Step-by-step explanation:

The correct answer is a) Compile-time, Load-time, Runtime.

Weaving in a Spring application refers to the process of injecting additional code into the existing code at specific points. This is done to add functionality or enhance the behavior of the application.

Compile-time weaving involves modifying the code during the compilation process. Load-time weaving happens when the bytecode is transformed just before it is loaded into the JVM. Runtime weaving occurs while the application is running.

User Hari Subramaniam
by
8.8k points

Related questions