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

What is default scope of bean in Spring framework?

Câu trả lời

The default scope of a bean in the Spring framework is the singleton scope. This means that the Spring container creates and manages only one instance of the bean per Spring IoC (Inversion of Control) container. This single instance is cached, and all subsequent requests for that bean will return the same instance[1][2][3][4][5][6].

Citations:
[1] https://howtodoinjava.com/spring-core/spring-bean-scopes/
[2] https://stackoverflow.com/questions/32420503/what-is-t...

junior

junior

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

junior

Do you need spring-mvc.jar in your classpath or is it part of spring-core?

expert

What is the difference between @Inject and @Autowired in Spring Framework? Which one to use
under what condition?

middle

What is the difference between Bean Factory and Application Context?

Bình luận

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

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