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条)

报告相同问题?

悬赏问题

  • ¥15 用visual studi code完成html页面
  • ¥15 聚类分析或者python进行数据分析
  • ¥15 逻辑谓词和消解原理的运用
  • ¥15 三菱伺服电机按启动按钮有使能但不动作
  • ¥15 js,页面2返回页面1时定位进入的设备
  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?