Shredded interviewer series (1): spring 108 interview questions collection

Do not miss passing through

Click the blue word to follow us

Preface

Presumably, programmers have already begun to prepare for the golden nine and silver ten autumn recruits. The purpose of creating this series of articles is to help you solve interview problems. The series of articles will be updated all the time. If you feel good, you can follow me and forward it to let more Brothers see the program ~ Next we enter the text link (interview questions + answer receiving method public account homepage)

Basics

Spring overview

  1. What is spring?

  2. What are the benefits of using the Spring framework?

  3. What modules does Spring consist of?

  4. Core container (application context) module.

  5. BeanFactory-BeanFactory implementation example.

  6. XMLBeanFactory

  7. Explain the AOP module

  8. Explain the JDBC abstraction and DAO module.

  9. Explain the object/relational mapping integration module.

  10. Explain the WEB module.

  11. Spring configuration file

  12. What is the Spring IOC container?

  13. What are the advantages of IOC?

  14. What is the usual implementation of ApplicationContext?

  15. What is the difference between Bean Factory and Application Contexts?

  16. What does a Spring application look like?

  17. What is Spring's dependency injection?

  18. What are the different types of IOC (dependency injection) methods?

  19. Which method of dependency injection do you recommend, constructor injection or Setter method injection

Spring Beans

  1. What are spring beans

  2. What does a Spring Bean definition include?

  3. How to provide configuration metadata to the Spring container?

  4. How do you define the scope of the class?

  5. Explain the scope of several beans supported by Spring.

  6. Are singleton beans in the Spring framework thread-safe?

  7. Explain the life cycle of beans in the Spring framework.

  8. What are the important bean life cycle methods? Can you overload them?

  9. What are Spring's internal beans?

  10. How to inject a java collection in Spring?

String type.

  1. What is bean assembly?

  2. What is automatic wiring of beans?

  3. Explain the different ways of automatic assembly.

  4. What are the limitations of automatic assembly?

  5. Can you inject a null and an empty string in Spring?

Spring annotation

  1. What is the Java-based Spring annotation configuration? Give some annotation examples.

  2. What is annotation-based container configuration?

  3. How to turn on annotation assembly?

  4. @Required annotation

  5. @Autowired annotation

  6. @Qualifier annotation

Spring data access

  1. How to use JDBC more effectively in the Spring framework?

  2. JdbcTemplate

  3. Spring support for DAO

  4. How to access Hibernate with Spring?

  5. ORM supported by Spring

  6. How to use HibernateDaoSupport to combine Spring and

  7. Types of transaction management supported by Spring

  8. What are the advantages of Spring Framework transaction management?

  9. Which type of transaction management do you prefer?

Spring aspect-oriented programming (AOP)

  1. Explain AOP

  2. Aspect

  3. In Spring AOP, what is the difference between focus and crosscutting focus?

  4. Junction

  5. Notice

  6. Cut-off point

  7. What is introduction?

  8. What is the target audience?

  9. What is a proxy?

  10. How many different types of automatic agents are there?

  11. What is weaving. What are the differences in weaving applications?

  12. Explain the realization of the aspect based on XML Schema.

  13. Explain the annotation-based aspect realization

Spring 的 MVC

  1. What is Spring's MVC framework?

  2. DispatcherServlet

  3. WebApplicationContext

  4. What is the controller of the Spring MVC framework?

  5. @Controller annotation

  6. @RequestMapping annotation

Advanced

1. What is the Spring framework? What are the main modules of the Spring framework?
2. What are the benefits of using the Spring framework?
3. What is Inversion of Control (IOC)? What is dependency injection?
4. Please explain the IoC in the Spring framework?
5. What is the difference between BeanFactory and ApplicationContext?
6. How many configuration methods does Spring have?
7. How to configure Spring based on XML configuration?
8. How to configure Spring based on Java configuration?
9. How to configure Spring with annotations?
10. Please explain the life cycle of Spring Bean?
11. What is the difference between the scope of Spring Bean?
12. What is Spring inner beans?
13. Are singleton beans in the Spring framework thread-safe?
14. Please give an example of how to inject a Java Collection in Spring?
15. How to inject a Java.util.Properties into Spring Bean?
16. Please explain the automatic assembly of Spring Bean?
17. Please explain the difference in automatic assembly mode?
18. How to turn on automatic assembly based on annotations?
19. Please give an example to explain the @Required annotation?
20. Please give an example to explain the @Autowired annotation?
21. Please give an example to illustrate the @Qualifier annotation?
22. What is the difference between construction method injection and set value injection?
23. What are the different types of events in the Spring framework?
24. What is the difference between FileSystemResource and ClassPathResource?
25. What design patterns are used in the Spring framework?

Advanced Part Two

1. Talk about your understanding of spring IOC and DI. What is the difference between them?
2. What is the difference between the BeanFactory interface and the ApplicationContext interface?
3. What are the ways for spring to configure bean instantiation?
4. Briefly talk about the life cycle of spring?
5. Please introduce the life cycle and scope of Bean in Spring framework.
6. What are the ways to inject properties of Bean ?
7. What is AOP and what is the role of AOP?
8. What are the core classes of Spring and what are their functions?
9. How to configure the database driver in Spring?
10. Can the applicationContext.xml file in Spring be changed to other file names?
11. How to define hibernate mapping in Spring?
12. How does Spring deal with thread concurrency issues?
13. Introduce the transaction management affairs of
Spring is to a series. 14. Explain a few terms in Spring AOP.
15. What are the types of notifications?


Previous wonderful recommendations

Summary of Tencent, Ali, Didi Backstage Interview Questions-(including answers)

Interview: The most comprehensive multi-threaded interview questions in history!

The latest Alibaba pushes Java back-end interview questions

JVM is difficult to learn? That's because you didn't read this article seriously

—END—

Follow the author's WeChat public account—"JAVA Rotten Pigskin"

Learn more about java back-end architecture knowledge and the latest interview book

Every thing you order is pretty, I take it seriously as a favorite

After reading this article, remember to give the author a thumbs up + watching it~~~ Everyone's support is the motivation for the author to continue publishing articles.

Guess you like

Origin blog.csdn.net/yunzhaji3762/article/details/108878559