No support for iBatis in Spring4.2.0

纵然是瞬间 提交于 2021-02-07 14:40:37

问题


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?


回答1:


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>


来源:https://stackoverflow.com/questions/32353286/no-support-for-ibatis-in-spring4-2-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!