preface

The Spring framework has been favored by developers since its inception, and some people affectionately call it the Spring Family bucket.

Spring has undoubtedly become the industry standard for Java backend development, with countless companies choosing Spring as the underlying development framework and most Java backend programmers coming into contact with Spring in their daily work.

Many developers regard Spring as the best Java project they have ever had.

So this is the key is also difficult, must be able to work, interview affirmation test.

Spring interview questions

1. What are the main features of Spring Framework versions?

2. What is Spring Framework?

3. List the advantages of the Spring Framework.

What are the different features of the Spring Framework?

5. How many modules are there in the Spring Framework, and what are they?

What is a Spring configuration file?

What are the different components of a Spring application?

8. What are the ways to use Spring?

What is the Spring IOC container?

What is dependency injection?

11. How many ways can dependency injection be accomplished?

Distinguish constructor injection from setter injection.

How many IOC containers are available in Spring?

Distinguish between BeanFactory and ApplicationContext.

15. List some advantages of IoC.

16. Implementation mechanism of Spring IoC

17, What is Spring bean?

18. What configuration methods does Spring provide?

19. Spring supports centralized bean scopes?

What is the lifecycle of the Spring Bean container?

21. What are Spring’s internal beans?

22. What is Spring assembly

23. What are the methods of automatic assembly?

24. What are the limitations of automatic assembly?

25. What is annotation-based container configuration

26. How do I start annotation assembly in Spring?

What’s the difference between @Component, @Controller, @repository, @service?

28. What is the use of the @required annotation?

29. What is the use of the @autowired annotation?

30. What is the use of @qualifier annotations?

31, What is the @requestMapping annotation for?

What is the use of spring DAO?

33. List exceptions thrown by the Spring DAO.

34. What classes exist in the Spring JDBC API?

What are the ways to access Hibernate using Spring?

36. List the transaction management types supported by Spring

37. Which ORM frameworks spring supports

What is AOP?

What is Aspect?

40, What is the JoinPoint

41. What is Advice?

42, What kind of Advice is there?

There are some differences between Concern and cross-cutting concern in Spring AOP.

What are the implementation methods of AOP?

What is the difference between Spring AOP and AspectJ AOP?

46. How do you understand proxies in Spring?

47. What is Weaving?

What is the use of Spring MVC framework?

Describe the workflow of DispatcherServlet

50. Introduce WebApplicationContext

What is Spring?

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

53. What modules does Spring consist of?

Core container (application context) module.

55. BeanFactory – Implementation example of BeanFactory.

56, XMLBeanFactory

Explain the AOP module

58. Explain the JDBC abstraction and DAO modules.

Explain the object/relational mapping integration module.

60. Explain the WEB module.

61. Spring configuration files

What is the Spring IOC container? .

What are the advantages of IOC?

64. What is the common implementation of ApplicationContext?

What is the difference between Bean Factory and Application Contexts?

What does a Spring application look like?

67, What is Spring’s dependency injection?

What are the different types of IOC (dependency injection) approaches?

Which dependency injection method do you recommend, constructor injection or Setter injection?

What are Spring beans?

71. What does a Spring Bean definition contain?

How do I provide configuration metadata to the Spring container?

73, How do you define the scope of a class?

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

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

Explain the lifecycle of beans in the Spring framework.

77. What are the important bean lifecycle methods? Can you reload them?

78, What is Spring’s internal bean?

How do I inject a Java collection in Spring?

What is bean assembly?

What is bean autowiring?

Explain the different ways of automatic assembly.

83. What are the limitations of automatic assembly?

Can you inject a null and an empty string into Spring?

What is the Java-based Spring annotation configuration? Give some examples of annotations

What is annotation-based container configuration?

87, How to open the annotation assembly?

88, @required annotation

89, @autowired annotation

90, @qualifier annotations

How can I use JDBC more effectively in the Spring framework?

92, JdbcTemplate

Spring support for DAO

How to access Hibernate using Spring?

95. ORM supported by Spring

How to combine Spring and Hibernate with Hibernateda Support?

Transaction management types supported by Spring

What are the advantages of the Spring framework’s transaction management?

What type of transaction management do you prefer?

Explain AOP

Aspect section

What is the difference between concerns and crosscutting concerns in Spring AOP?

Connection point

104, notifications,

105 and point of tangency

106. What is introduction?

107. What is the target object?

What is agency

How many different types of automatic agents are there?

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

Explain the implementation of aspects based on XML Schema.

112. Explain annotation-based aspect implementation

113. What is Spring’s MVC framework? .

In 114, the DispatcherServlet

115, WebApplicationContext

116. What is the Spring MVC framework controller?

117, @controller annotation

118, @requestMapping annotation

Pick it up in the comments section!!

Spring Cloud interview question

1. What is Spring Cloud?

2. What are the advantages of using Spring Cloud?

3. What does service registration and discovery mean? How is Spring Cloud implemented?

4. What’s the difference between Spring Cloud and Dubbo?

5. The difference between SpringBoot and SpringCloud?

What is the significance of load balancing?

7. What is Hystrix? How does it achieve fault tolerance?

8. What is Hystrix circuit breaker? Do we need it?

9. What is Netflix Feign? What are its advantages?

What is Spring Cloud Bus? Do we need it?

11. The role of Spring Cloud circuit breaker

12. What is SpringCloudConfig?

13, Spring Cloud Gateway?

Spring Cloud interview question answer: Collect in the comments section!!

Spring Boot interview question

1. What is Spring Boot?

2. What are the advantages of Spring Boot?

3. What is JavaConfig?

4. How do I reload changes on Spring Boot without restarting the server?

5. What is the monitor in Spring Boot?

6. How to disable THE security of endpoints in Spring Boot?

7. How to run a Spring Boot application on a custom port?

8. What is YAML?

How to implement Spring Boot application security?

10. How to integrate Spring Boot and ActiveMQ?

How to use Spring Boot to implement paging and sorting?

12, What is Swagger? Did you implement it with Spring Boot?

13. What are Spring Profiles?

14. What is Spring Batch?

15. What is a FreeMarker template?

16. How to use Spring Boot to implement exception handling?

17. Which Starter Maven dependencies do you use?

What is a CSRF attack?

What are WebSockets?

What is AOP?

What is Apache Kafka?

22. How do we monitor all Spring Boot microservices?

Spring Boot interview question

conclusion

All the interview questions are not immutable, especially like a big factory, the above interview questions just give you a reference, the most important is to increase their knowledge reserve, be prepared.

Finally to share with you: comment area to receive!!

Spring series of study notes and quizzes, Includes Spring interview questions, Spring Cloud interview questions, Spring Boot interview questions, Spring Tutorial Notes, Spring Boot tutorial notes, the latest Alibaba development manual (63 pages of PDF summary), 2020 Java Interview Manual. A total of 1184 pages of PDF documents were organized.