Câu hỏi phỏng vấn Spring
Câu hỏi

What is Aspect?

Câu trả lời

In Spring Framework, an "Aspect" is a modular part of a program that encapsulates behaviors affecting multiple classes, known as cross-cutting concerns. These concerns typically include functionalities like logging, transaction management, or security, which are common across various parts of an application but do not fit well into the object-oriented programming model. Aspects improve modularity by allowing the separation of these cross-cutting concerns from the main business logic, thereby making them easier to maintain and understand.

Aspects are implemented using regular classes annotated with @Aspect in Spring, or they can be regular classes that are configured through Spring's configuration mechanisms. Within an aspect, you can define pointcuts and advices. Pointcuts determine at which join points (specific points in the program exec...

middle

middle

Gợi ý câu hỏi phỏng vấn

middle

What is Spring JDBCTemplate class and how to use it?

senior

What bean scopes does Spring support? Explain them.

expert

Where does the @Transactional annotation belong?

Bình luận

Chưa có bình luận nào

Chưa có bình luận nào