Shredded interviewer series (two): open source framework interview questions Spring+SpringMVC+MyBatis

Do not miss passing through

Click the blue word to follow us

Job hopping happens all the time, but I suggest that you think about why you want to quit before you quit. Don’t follow suit. Seeing that all of your colleagues have left, and you start the interview blindly (I didn’t prepare enough during the period), is it because of technical reasons (affecting your own development, deviating from your planned trajectory) or money Less, not taken seriously.

Not much gossip about the starting topic (interview question + answer collection method homepage reply [666])


The following are common spring interview questions:

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
10 with annotations . Please explain the life cycle of Spring Bean?
11. What is the difference between the scope of Spring Bean?
12. What are 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
into 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 @Autowired annotation?
21. Please give an example to illustrate the @Qualifier annotation?
22. What is the difference between construction method injection and setting 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?



Spring MVC

1. What is SpringMvc?
2. Advantages of Spring MVC
3. How does Spring MVC work?
4. SpringMVC process?
5. Is the controller of SpringMvc singleton mode? If so, what are the problems and how to solve them?
6. If you have also used struts2. What are the differences between springMVC and struts2?
7. The controller annotations in SpingMvc generally use that. Is there any other annotations that can be substituted?
8. What is the effect of @RequestMapping annotation on classes?
9. How to map a request to a specific method?
10. If in the interception request, I want to intercept the method submitted by get, how to configure it?
11. How to get Request or Session in the method?
12. I want to get the parameters passed in from the front desk in the interception method, how do I get it?
13. If there are many parameters passed in at the front desk, and these parameters are all an object, how to get this object quickly?
14. What is the return value of the function in SpringMvc?
15. How to set redirection and forwarding in SpringMVC?
16. What object does SpringMvc use to transfer data from the background to the foreground?
17. There is a class in SpringMvc that combines view and data together. What is it called?
18. How to put the data in ModelMap into Session?
19. How do SpringMvc and AJAX call each other?
20. When a method returns a special object to AJAX, such as Object, List, etc., what should be done?
21. How is the interceptor written in
SpringMvc?22. Tell me about the execution process of SpringMvc


MyBatis

1. What is MyBatis?
2. Tell
me about the cache of MyBatis 3. How does Mybatis perform paging? What is the principle of the paging plugin?
4. Briefly describe the operation principle of Mybatis plug-in, and how to write a plug-in?
5. What does Mybatis dynamic sql do? What are the dynamic SQL? Can you briefly describe the implementation principle of dynamic sql?
6. What is the difference between #{} and ${}?
7. Why is Mybatis a semi-automatic ORM mapping tool? What is the difference between it and fully automatic?
8. Does Mybatis support lazy loading? If so, what is its implementation principle?
9. What is the difference between MyBatis and Hibernate?
10. What are the benefits of MyBatis?
11. Briefly describe the mapping relationship between Mybatis Xml mapping file and Mybatis internal data structure?
12. What is the interface binding of MyBatis and what are the benefits?
13. There are several ways to implement interface binding, and how are they implemented?
14. Under what circumstances are annotation binding and xml binding used?
15. How many ways does MyBatis implement one-to-one? How do you do it?
16. Can Mybatis perform one-to-one and one-to-many related queries? What are the implementation methods, and the differences between them?
17. How is the dynamic Sql in MyBatis set? What syntax is used?
18. How does Mybatis encapsulate the SQL execution result as a target object and return it? What are the mapping forms?
19. In the Xml mapping file, besides the common select|insert|updae|delete tags, what other tags are there?
20. When the attribute name in the entity class is not the same as the field name in the table, what if the query result is encapsulated in the specified pojo?
21. How to write like statement in fuzzy query?
22. Generally, an Xml mapping file will have a Dao interface corresponding to it. Can Dao work principle can be overloaded?
23. In the Mybatis mapping file, if the A tag refers to the content of the B tag through include, can the B tag be defined after the A tag, or must it be defined before the A tag?
24. In the Xml mapping file of Mybatis, can the id be repeated for different Xml mapping files?
25. How to execute batch processing in Mybatis?
26. What Executor executors does Mybatis have? What is the difference between them?
27. How to specify which type of Executor to use in Mybatis?
28. Mybatis executes batch insert, can it return the database primary key list?
29. Can Mybatis map Enum enumeration class?
30. How to get the automatically generated (primary) key value?
31. How to pass multiple parameters in mapper?
32. What is the difference between resultType and resultMap?
33. What are the requirements when using the mapper interface of MyBatis to call?
34. What are the major improvements of Mybatis over IBatis?
35. What are the core processing classes of IBatis and MyBatis?
36. What are the differences between IBatis and MyBatis in details?


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

Everything you order is pretty, I take it seriously

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/108878555