MyBatis part or SPRINGMVC part

Source: Internet
Author: User
Tags http post soap

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

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.