【Mybatis】First Acquaintance

The version after Ibatis 3.0 is mybatis


1. Tools for connecting to the database: JDBC, DbUtils, JdbcTemplate 

The SQL statements of these tools are written in java code. If you modify the SQL statement, you need to modify the code, which is very inconvenient.


2. Frame

hibernate is a fully automatic ORM framework

It will automatically write, execute SQL statements

SQL statements are not written by developers, nor can they be optimized, customized








Mybatis is a semi-automatic ORM framework

It separates SQL statements from java , allowing developers to write SQL in the configuration file, so that the purpose of optimizing and customizing SQL can be achieved




Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325727742&siteId=291194637