In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article will explain in detail what are the questions about the Spring interview. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
What is Spring?
Spring is a development framework and platform that inverts control of IOC and AOP.
Explain Spring?
Lightweight: Spring is lightweight in size and transparency, the basic core version of Spring is only about 1m, and the processing overhead is very small.
Reverse control Inversion of control (IoC): Spring uses IOC to achieve loose coupling, and objects are not actively looking for dependencies, but relying on actively pushing to themselves.
Aspect-oriented (AOP): Spring supports aspect-oriented programming, separates concerns from business logic, and enables focused development. .
Containers: Spring containers contain and manage the life cycle of application objects.
Framework: Spring provides the most kernel functions, leaving the rest to developers.
What are the different modules of the Spring framework?
Core container module
Application context module Application context
AOP module
JDBC abstraction and DAO module
Omap R mapping integration module
Web module
MVC framework module
What is the structure of the Spring framework?
What is the core container module?
A Spring framework that provides basic functionality. The BeanFactory in this module is the heart of any Spring-based application. The whole framework is based on this module. This module generates a Spring container.
What is the application context Application context module?
The application context module makes Spring a framework. This module extends the concept of BeanFactory, providing support for internationalization (I18N) messages, application lifecycle events, and validation. This module also provides many enterprise services, such as JNDI access, EJB integration, remote and scheduling. It also provides support for other frameworks.
What is an AOP module?
The AOP module is used for application development of Spring. Provides support from most AOP consortia to ensure interoperability between Spring and other AOP frameworks. This module also introduces metadata programming. Using Spring's metadata to support our source code, through the introduction of meta-annotations to guide us specifically where to implement aspect programming.
What are JDBC and DAO abstract modules?
Using this module, we can keep the code of the database clean and simple, and prevent problems such as shutting down database resources. A new meaningful anomaly layer based on error messages from multiple database servers. In addition, the module uses Spring's AOP module to implement transaction management.
What is the object-relational database mapping integration module?
Spring supports the use of an object / relational mapping (ORM) tool to provide ORM modules based on JDBC. Work with some popular ORM frameworks, including Hibernate,JDO and iBATIS SQL mapping. Spring's transaction management also supports these ORM frameworks as well as JDBC.
What is a Web module?
This module is based on the application context module and provides a context based on Web application. This module also contains several Web-oriented tasks, such as multiple file uploads and transparently binding request parameters to your business objects. It also includes integration support with Jakarta Struts.
What is SpringMVC?
Spring provides a full-featured MVC framework for building Web applications. Although Spring can be easily integrated into other MVC frameworks, such as Struts,Spring 's MVC framework, IOC is used to cleanly separate controller logic from business objects. It also allows you to declaratively bind request parameters to your business object. It can also take advantage of other Spring services, such as localized messages and authentication.
What is BeanFactory?
An BeanFactory is an implementation of the factory pattern that uses inversion control to separate the configuration and dependencies of the application from the application code.
What AOP Alliance?
The AOP Alliance is an open source project that aims to promote AOP and interoperability in different AOP products by defining a common set of interfaces and components.
What is a Spring profile?
The configuration file for Spring is an XML file. The class information contained in this file describes how these classes are configured and implements dependent imports of each other.
What does a simple Spring application include?
These applications are like any Java application. They are made up of multiple classes, each performing a specific function within the application. The configuration of these classes is to import dependencies to each other through a XML file. This XML file describes how to configure classes, called Spring configuration files.
This is the end of this article on "what are the interview questions for Spring?". I hope the above content can be helpful to you so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.