For development students, the Spring framework is familiar and unfamiliar. Familiar: The knowledge points of using Spring all the time in the development process; Unfamiliar: the basic theoretical knowledge is neglected and memorized. As a result, many students know their answers to Spring-related questions during interviews, but the expressions are not complete and accurate. Today I will share the 100 frequently asked questions and analysis of the Internet company Java interview!
1. Basic Concept Interview Question Set (Combing Spring related concepts)
- Talk about the understanding of Spring IoC?
- Talk about your understanding of Spring DI?
- What is the difference between the BeanFactory interface and the ApplicationContext interface?
- Please introduce the Spring core classes you are familiar with, and explain what they do?
- Introduce your understanding of Spring's affairs?
- Introduce Spring's transaction implementation method?
- Explain the AOP module
- What are the notification types of Spring, please briefly introduce?
- What are the usage scenarios of Spring notification types?
- Could you please introduce your understanding of Spring Beans?
- What are the advantages of Spring?
- Method steps for using hibernate in Spring
- What is the difference between Spring and Struts?
- What are the parts of the Spring framework?
- Talk about your understanding of BeanFactory, BeanFactory implementation examples
- Talk about the understanding of the Web module in Spring
- What is the difference between BeanFactory and Application contexts?
- Talk about your understanding of Spring dependency injection?
- What is bean assembly?
- What is Bean's automatic wiring?
- Introduce how many ways are there for automatic assembly?
- What is annotation-based container configuration?
- Briefly describe the role of the JdbcTemplate class
- Explain AOP
- Explain the Aspect
- Briefly describe the notifications in Spring AOP
- How do you understand weaving in Spring AOP?
- Please introduce the Spring MVC process in detail?
- Spring configuration file?
- What is the effect of @RequestMapping annotation on the class
- How to map a request to a specific method
- Talk about Spring's support for DAO
Note: In order not to affect reading, I have compiled the analysis into pdf and shared it for free
2. Application scenario interview question set (different use scenario selection for each knowledge point)
- What are the ways to instantiate Spring configuration beans?
- What are the ways to inject properties into beans
- How to implement time processing in Spring?
- How to use JDBC more efficiently in Spring?
- Please introduce the use of design patterns in the Spring framework?
- What are the advantages of the Spring framework?
- Which method of dependency injection do you recommend, constructor injection or Setter method injection?
- How do you define the scope of the class?
- Explain the scope of several beans supported by Spring
- How to inject a Java collection in Spring?
- Can you inject a null and an empty string in Spring?
- What is the Java-based Spring annotation configuration? Give some annotation examples
- Which type of transaction management do you prefer?
- What are the calling methods of Bean?
- How is the interceptor written in Spring MVC
- When a method returns a special object to AJAX, such as Object, List, etc., what needs to be done?
- How to use Spring MVC to complete JSON operations
- How Spring integrates Hibernate
- How does Spring integrate Struts2?
- What technologies are mainly used in the development of Spring?
- Introduce some commonly used annotations in Spring MVC
- What are the advantages of Spring framework transaction management
3. In-depth knowledge interview question set (detailed explanation of underlying implementation principles)
- IoC control inversion design principle?
- The life cycle of Spring?
- How does Spring deal with thread concurrency?
- Understanding of the core container (application context) module?
- Why is Spring a container?
- What are the advantages of Spring?
- Are singleton beans in the Spring framework thread-safe?
- What are the different types of events in the Spring framework?
- What are the advantages of IoC?
- Explain the life cycle of beans in the Spring framework
- What are Spring's internal beans?
- What are the limitations of automatic assembly?
- What are the advantages of Spring Framework transaction management?
- What is the difference between focus and crosscutting focus in Spring AOP?
- Talk about the underlying implementation principle of Spring AOP?
- How to provide configuration metadata to the Spring container?
- What are the important bean life cycle methods? Can you overload them?
- Talk about the execution process of Spring MVC
- Is the controller of Spring MVC a singleton mode? If so, what are the problems and how to solve them?
- The way of loop injection in Spring?
- Spring MVC compares Struts2
4. Expanded content interview question set (Spring Boot related question set)
- What is Spring Boot?
- The principle of Spring Boot automatic configuration?
- How does Spring Boot read the configuration file?
- What is a microservice architecture?
- What is the difference between Ribbon and Feign?
- What does Spring Cloud circuit breaker do?
- Why use Spring Boot?
- What are the core configuration files of Spring Boot? What is the difference between them?
- What are the formats of Spring Boot configuration files? What is the difference between them?
- What is the core annotation of Spring Boot? Which annotations are mainly composed of?
- What are the ways to enable Spring Boot features?
- Does Spring Boot need a separate container to run?
- What are the ways to run Spring Boot?
- How do you understand Starters in Spring Boot?
- How to run some specific code when Spring Boot starts?
- What are the ways to read configuration in Spring Boot?
- How many ways does Spring Boot implement hot deployment?
- How to configure Spring Boot multiple different environments?
- Is Spring Boot compatible with old Spring projects and how to do it?
- What is Spring Cloud?
- Introduce the commonly used components of Spring Cloud?
- How does Spring Cloud implement service registration?
- What is load balancing? what's the effect?
- What is a service circuit breaker?
- Please introduce the main function of Ribbon?
Java back-end interview special documents
Java Virtual Machine (JVM) and performance optimization
MySQL high-performance database
Design Patterns
Java back-end study notes map
to sum up
"Being a programmer, circle and learning are the most important." Because having a circle allows you to avoid detours, expand your network, expand your thinking, and learn from others' experiences and learning methods! At the same time, I would like to share with you all the advanced notes and learning materials of the Java back-end that have been compiled for free!
Free information collection: like + follow, add assistant VX: mxx2020666, you can get it for free!