search

Home  >  Q&A  >  body text

java - Mybatis 和hibernate 有哪些相同点,有什么 区别?

各位大神,这个是面试题啊,小弟是菜鸟,最好,用比较通俗的话说,最好不要直接 百度copy 其他人的,最好是自己处理总结过的,因为,本人已经百度了很多次了。

黄舟黄舟2886 days ago600

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-04-17 16:05:40

    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

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 16:05:40

    I have read your two questions in a row. I suggest you stick with Baidu/Google

    reply
    0
  • Cancelreply