Mybatis Part
1 , MyBatis and hibernate?
Hibernate is an object-oriented thought operation data, MyBatis is a pure SQL operation data
Easy to optimize relative to mybatis. Good scalability, but poor portability.
2, mybatis how dynamic SQL?
MyBatis Dynamic SQL is a OGNL expression-based
Springmvc Part
1. SPRINGMVC Working principle
1.spring MVC requests that all requests be submitted to Dispatcherservlet, which will delegate the other modules of the application system responsible for the actual processing of the request.
2.DispatcherServlet queries one or more handlermapping to find the controller that handles the request.
3.DispatcherServlet request Submit to target Controller
4.Controller after the business logic is processed, it returns a Modelandview
5.Dispathcher querying one or more viewresolver view resolvers, locating the View object specified by the Modelandview object
6. The View object is responsible for rendering back to the client.
What is a single case?
A singleton object (Singleton) is a common design pattern. In Java applications, singleton objects guarantee that only one instance of the object exists in a JVM. There are several benefits to this model:
The first type (lazy, thread safe):
Public class Singleton {
Private Static Singleton instance;
Public Static synchronized Singleton getinstance () {
if (Instance = = null) {
Instance = New Singleton ();
}
return instance;
}
}
The second type (a Hungry man):
Public class Singleton {
Private Static Singleton instance = new Singleton ();
Private Singleton () {}
Private Singleton () {} {
return instance;
}
}
What is Webserivce?
One of the most basic purposes of webservice is to provide the ability to work together on different applications across different platforms.
A Web service is an application that exposes an API to the outside world that can be called through the web.
Soap is a simple XML-based lightweight protocol that exchanges structured information and type information on the user's web.
A SOAP request is a dedicated version of HTTP Post that follows a special XML message format Content-type set to: Text/xml Any data can be XML.
MyBatis part or SPRINGMVC part