Summary of the three major java frameworks

Source: Internet
Author: User

Hibernate workflow?
Read the configuration file of hibernate
Read the ing file and create sessionFactory
Open session
Enable trainsaction
Perform persistent operations
Submit things
Close session
Disable sessionFactory
Struts2 workflow?
When the browser sends an http request,
According to web. xml, the request is received by filterdisp
According to the struts. xml configuration, find the action class to be called and execute the corresponding business method,
After the execution is complete, jump to the corresponding jsp page according to the result of struts. xml.
Database connection pool mechanism?
When the server is started, a certain number of pool connections will be created and a certain number of pool connections will be maintained. When the client program needs to connect,
The pool driver returns an unused pool connection and marks it as busy. If there is no idle connection, the pool driver creates a certain number of connections. The number of new connections is determined by the configuration parameters, after the pool connection is called, the pool driver marks the connection as idle and waits for other calls,
What is the difference between forwarding and redirection?
Forwarding is the redirection of control in the container. It is the server that requests resources. The server directly accesses the target address and reads the corresponding url. the address bar is still the original address,
Redirection tells the browser to request an address again. The address bar of the browser displays the redirected address,
MVC Mode
Mvc is a hierarchical design model.
M stands for the model layer. Generally, it uses (The Ejb component after javaBean)
V agent view, presentation layer, generally used (jsp)
The c controller controls the interaction process between models and views to achieve mutual calling.
Functions of spring framework
Using spring for integration reduces the relationship between components and achieves decoupling. The core of this function is IoC and Aop.
What is Ioc?
Ioc control inversion is actually dependency injection, which is to inject an implementation class instance of an interface into reference in some way,
What is Aop?
Aop is called Aspect-oriented programming. It can encapsulate the functions of common processing into one component independently and use spring's Aop mechanism to apply it to other target object methods.
What are things in spring?
Declaration is a thing and a programming thing
Declarative things are the most commonly used

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.