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