The most complete 153 Spring family bucket interview questions, which ones have you encountered? (including answer analysis)

foreword

Since its inception, the Spring framework has been favored by developers, and some people affectionately call it: Spring Family Bucket.

Undoubtedly, Spring has already become the industry standard for Java back-end development. Countless companies choose Spring as the basic development framework, and most Java back-end programmers will also come into contact with Spring in their daily work.

Many developers regard Spring as the best Java project in their minds, not one of them.

So this is the key point and also the difficult point. You must know it at work, and you must test it during the interview.

 

Spring interview questions

1. What are the main functions of different versions of Spring Framework?

2. What is Spring Framework?

3. List the advantages of Spring Framework.

4. What are the different functions of Spring Framework?

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

6. What is a Spring configuration file?

7. What are the different components of a Spring application?

8. What are the ways to use Spring?

9. What is Spring IOC container?

10. What is dependency injection?

11. How many ways can dependency injection be done?

12. Distinguish between constructor injection and setter injection.

13. How many IOC containers are there in spring?

14. Distinguish between BeanFactory and ApplicationContext.

15. List some benefits of IoC.

16. The implementation mechanism of Spring IoC.

17. What is a spring bean?

18. What configuration methods does spring provide?

19. Does spring support centralized bean scope?

20. What is the life cycle of the spring bean container?

21. What is the inner bean of spring?

22. What is spring assembly

23. What are the ways of automatic assembly?

24. What are the limitations of automatic assembly?

25. What is annotation-based container configuration

26. How to start annotation assembly in spring?

27. What is the difference between @Component, @Controller, @Repository, @Service?

28. What is the use of @Required annotation?

29. What is the use of @Autowired annotation?

30. What is the use of @Qualifier annotation?

31. What is the use of @RequestMapping annotation?

32. What is the use of spring DAO?

33. List the exceptions thrown by Spring DAO.

34. What classes exist in the spring JDBC API?

35. What are the methods of using Spring to access Hibernate?

36. List the transaction management types supported by spring

37. Which ORM frameworks does spring support?

38. What is AOP?

39. What is Aspect?

40. What is a JoinPoint?

41. What is Advice?

42. What types of advice are there?

43. Point out the difference between concern and cross-cutting concern in spring aop.

44. What are the implementation methods of AOP?

45. What is the difference between Spring AOP and AspectJ AOP?

46. ​​How to understand the proxy in Spring?

47. What is weaving?

48. What is the use of Spring MVC framework?

49. Describe the workflow of DispatcherServlet

50. Introduce WebApplicationContext

51. What is spring?

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

53. What modules does Spring consist of?

54. Core container (application context) module.

55. BeanFactory – Example of BeanFactory implementation.

56、XMLBeanFactory

57. Explain the AOP module

58. Explain the JDBC abstraction and DAO module.

59. Explain the object/relational mapping integration module.

60. Explain the WEB module.

61. Spring configuration file

62. What is Spring IOC container? .

63. What are the advantages of IOC?

64. What is the usual implementation of ApplicationContext?

65. What is the difference between Bean factory and Application contexts?

66. What does a Spring application look like?

67. What is Spring's dependency injection?

68. What are the different types of IOC (Dependency Injection) methods?

69. Which dependency injection method do you recommend to use, constructor injection or setter method injection?

70. What are Spring beans?

71. What does a Spring Bean definition contain?

72. How to 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?

76. Explain the bean life cycle in the Spring framework.

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

78. What is Spring's inner bean?

79. How to inject a java collection in Spring?

80. What is bean assembly?

81. What is automatic assembly of beans?

82. Explain the different ways of autowiring.

83. What are the limitations of autowiring?

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

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

86. What is annotation-based container configuration?

87. How to open annotation assembly?

88. @Required annotation

89. @Autowired annotation

90. @Qualifier annotation

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

92、JdbcTemplate

93. Spring's support for DAO

94. How to use Spring to access Hibernate?

95. ORM supported by Spring

96. How to combine Spring and Hibernate through HibernateDaoSupport?

97. Types of transaction management supported by Spring

98. What are the advantages of transaction management in the Spring framework?

99. Which type of affairs management do you prefer to use?

100. Explain AOP

101. Aspect section

102. In Spring AOP, what is the difference between concerns and cross-cutting concerns?

103. Connection point

104. Notice

105. cut point

106. What is introduction?

107. What is the target object?

108. What is an agent?

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

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

111. Explain the implementation of aspects based on XML Schema.

112. Explain annotation-based aspect implementation

113. What is Spring's MVC framework? ..

114、DispatcherServlet

115、WebApplicationContext

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

117. @Controller annotation

118. @RequestMapping annotation

Answer analysis of Spring interview questions

Spring Cloud interview questions

1. What is Spring Cloud?

2. What are the advantages of using Spring Cloud?

3. What does service registration and discovery mean? How does Spring Cloud implement it?

4. What is the difference between Spring Cloud and dubbo?

5. What is the difference between SpringBoot and SpringCloud?

6. What is the meaning of load balancing?

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

8. What is a Hystrix circuit breaker? do we need it

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

10. What is Spring Cloud Bus? do we need it

11. The role of Spring Cloud circuit breaker

12. What is Spring Cloud Config?

13、Spring Cloud Gateway?

Answers to Spring Cloud interview questions

 

 

Spring Boot interview questions

1. What is Spring Boot?

2. What are the advantages of Spring Boot?

3. What is JavaConfig?

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

5. What is a monitor in Spring Boot?

6. How to disable Actuator endpoint security in Spring Boot?

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

8. What is YAML?

9. How to implement the security of Spring Boot application?

10. How to integrate Spring Boot and ActiveMQ?

11. How to use Spring Boot to implement paging and sorting?

12. What is Swagger? Have you implemented 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 did you use?

18. What is a CSRF attack?

19. What is WebSockets?

20. What is AOP?

21. What is Apache Kafka?

22. How can we monitor all Spring Boot microservices?

Answers to Spring Boot interview questions

 

Summarize

All interview questions are not static, especially for first-line manufacturers, the above interview questions are just for everyone to use as a reference, the most important thing is to increase the knowledge reserve for yourself, and be prepared.

Finally share with you

Spring series of study notes and interview questions, including spring interview questions, spring cloud interview questions, spring boot interview questions, spring tutorial notes, spring boot tutorial notes, the latest Alibaba development manual (63-page PDF summary), 2020 Java interview manual . A total of 1184 pages of PDF documents have been sorted out.

Pay attention to the official account: programmers follow the wind, reply to the information to get the spring family bucket information of this 1184-page PDF document.

 

Guess you like

Origin blog.csdn.net/Design407/article/details/108999682