1. Mybatis is lightweight, while hibernate is heavier. 2. Mybatis is semi-automated and you need to write sql by yourself. Hibernate generally uses annotations and hql for database operations. Of course, you can also use native sql 3. Generally speaking, the learning curve of mybatis is flatter, and it is also suitable for occasions that pay more attention to the efficiency of database operations
1. Mybatis is lightweight, while hibernate is heavier.
2. Mybatis is semi-automated and you need to write sql by yourself. Hibernate generally uses annotations and hql for database operations. Of course, you can also use native sql
3. Generally speaking, the learning curve of mybatis is flatter, and it is also suitable for occasions that pay more attention to the efficiency of database operations
I have read your two questions in a row. I suggest you stick with Baidu/Google