qq_36099669 2017-01-11 02:07 采纳率: 20%
浏览 4454
已采纳

spring升级到4.x后,orm包里面移除了对ibatis的支持,这是为什么

spring升级到4.x后,orm包里面移除了对ibatis的支持,这是为什么

  • 写回答

2条回答

  • engchina 2017-01-11 07:40
    关注

    Basically you just have to add this dependency to your project:

    <dependency>
        <groupId>org.mybatis</groupId>
        <artifactId>mybatis-2-spring</artifactId>
        <version>1.0.1</version>
    </dependency>
    

    Here are detail explanations.

    Spring 4 got you down with no ibatis support - no worries Mybatis has your back
    Spring is well on it's way to leaving 3 behind.  For ibatis users that for one reason or another are stuck to ibatis, but want to just make the jump to spring 4, there is a dilemma.  This dilemma roots in the fact that spring team dropped ibatis in spring 4.  Until now this meant that upgrading to spring 4 required upgrading ibatis to mybatis and mybatis-spring.  Well in order to mitigate risk to those that need it, mybatis team has decided to extract the spring 3 ibatis support into a new mybatis project called 'mybatis-2-spring'.  Better still, we go one step further and have released a fresh copy of 'mybatis-2'.  So there you have it, all of the users out there dealing with legacy code, mybatis is no longer directly tied into the mix resulting in higher risk in upgrading.  With that said, enjoy what's left in the ibatis land as we resurrect the past.
    

    refer url:http://stackoverflow.com/questions/32353286/no-support-for-ibatis-in-spring4-2-0

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!