MyBatis framework knowledge of basic learning portal JAVA

1.MyBatis
inside the package a JDBC, developers can focus on the SQL statement itself, the framework for Dao layer

2. dirty variable
indicates whether the data in the program is consistent with the data in the database, true extent of the inconsistency, false representation agreement

3.Mapper dynamic proxies
very important element, with which you can set aside Dao implementation class, locate the appropriate SQL statements directly to the map file of mapper, the DB operation

4.SQL fragment
refers to a fragment of any statement in the SQL statement is replaced, the framework is suitable for bulk edit SQL statements

The relationship query
-to-many relationship is usually associated with the primary use of foreign keys and foreign key columns in the multi sure

6. delay loading
into direct loading, invasive delay, delay depth

7. query cache
into cache and secondary cache
a cache can improve access speed query, additions and deletions will clear a cache operation
using more than two cache when querying modified

8. Notes-style development
is not recommended, you can understand

9.Log4j
log is divided into six levels: fatal / error / warn / info / debug / trace
can be a plus level off

(This is written before, save for the draft, it is now made public, would add more detail later)

Guess you like

Origin blog.csdn.net/fallwind_of_july/article/details/88064092