25 interview questions for mybatis

Sorry, We are not able to find the page you are looking for… Please browse through sections or use Site Search

Please Turn OFF your ad blocker

LOGIN to continue using GeekInterview website.

Create your GeekInterview account

Continue Reading after Disabling

1. How many steps does JDBC have?

JDBC can be divided into six steps

2. What is mybatis?

If you are asked in the interview, just say the following three things:

——From the official website. I recommend that you answer according to the official.

Mybatis interview questions and answers

Ibatis: In 2010, the Apache Ibatis framework stopped updating and was handed over to the google team. At the same time, it was renamed MyBatis. Ibatis has not been updated since 2010 and has completely become an orphan frame. An unmaintained frame is destined to be photographed on the beach by mybatis.

Mybatis: An upgraded version of Ibatis.

Mybatis realizes the binding of the DAO interface and the xml mapping file, and automatically generates the specific implementation of the interface for us, which becomes more trouble-free and convenient to use.

Annotation usage: when the SQL statement is simple

xml binding usage: xml binding (@RequestMap is used to bind xml files)

Map key-value pairs

column: the column name of the table in the database

property: the name of the property in the entity bean

Separate the Sql statement from Java.

It encapsulates the calls of the underlying JDBC and API, and can automatically convert the result set into a JavaBean object, which simplifies the repetitive work of Java database programming.

Write Sql statements yourself, which is more flexible.

No need to use object encapsulation (or map encapsulation) to enter parameters, use @Param annotation

property: property name

column: common column

ofType: the type of elements in the collection

select: the query to be connected

property: property name

select: the query to be connected

column: common column

javaType: the type of elements in the collection

RowBounds object pagination

Write directly in Sql, with physical paging

Intelligent Recommendation

Read the table of contents 1. How to perform performance analysis on Android applications 2. Under what circumstances will cause memory leaks 3. How to avoid OOM exceptions 4. How to catch uncaught ex…

Q: What is the difference between JDK and JRE? A: Q: Final keyword, can abstract class use final modification? A: Q: JAVA container A: Q: What are the aspects of thread safety? How does JAVA guarantee…

One, Java basics 1. What is the difference between an instance method and a static method? 2. What are the types of exceptions in Java? How to use each? An exception is detected, and an exception is n…

1. Interview question: Use the for loop to create 10 html files in batches in the /tmp directory. Each file needs to contain 10 random lowercase letters plus a fixed string template. The example is as…

All blog listings

Posted by chick at Nov 26, 2021 – 1:42 AM

Posted by likuku at Nov 26, 2021 – 4:42 AM

1, Static proxy mode The so-called static means that the bytecode file of the agent class already exists before the program runs, and the relationship between the agent class and the delegate class is determined before the program runs Example understanding: Taking renting as an example, the landlord only needs to deal with his own hous …

Problem Description: The three unknowns form an equation. In the CSV file, there are N rows of coefficients related to [x, y, z], and the values of the three unknowns [x, y, z] are solved. Article catalog preface1, Tool kit2, Use steps 1. Read in file2. Write equationsummary preface The relationship between the three unk …

1, Static proxy mode The so-called static means that the bytecode file of the agent class already exists before the program runs, and the relationship between the agent class and the delegate class is determined before the program runs Example understanding: Taking renting as an example, the landlord only needs to deal with his own hous …

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *