在Spring4.2.0中不支持iBatis [英] No support for iBatis in Spring4.2.0

查看:82
本文介绍了在Spring4.2.0中不支持iBatis的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Spring4.2.0中不支持ibatis.我的项目从Spring 3.2.4升级到Spring 4.2.当我用谷歌搜索时,我发现与mybatis的spring4.2集成示例,但与ibatis无关.有人可以帮我增加ibatis支持吗?

There is no support for ibatis in Spring4.2.0. MY project is upgrading from Spring 3.2.4 to Spring 4.2. As i googled, i found spring4.2 integration examples with mybatis but not with ibatis. Can somebody help me on how i can add ibatis support?

推荐答案

iBATIS 2.x支持已从Spring 4.0版本中删除,但是有一种解决方法.看到这篇文章:

iBATIS 2.x support was removed from Spring in version 4.0 but there is a workaround for that. See this post:

http://blog.mybatis.org/2015/11/spring-4-got-you-down-with-no-ibatis.html

基本上,您只需要将此依赖项添加到您的项目中即可:

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>

这篇关于在Spring4.2.0中不支持iBatis的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆