没有 Spring 的 Spring JDBC 模板 [英] Spring JDBC template without Spring

查看:31
本文介绍了没有 Spring 的 Spring JDBC 模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有类似 Spring JDBC 模板的 Java 库,具有相同质量的代码和文档以及类似的数据访问异常层次结构,但不依赖于其他 Spring 模块(根据 a href="http://mvnrepository.com/artifact/org.springframework/spring-jdbc/3.0.6.RELEASE">http://mvnrepository.com/artifact/org.springframework/spring-jdbc/3.0.6.释放)?

Is there Java library like Spring JDBC Template, with same quality of code and documentation and similar data access exceptions hierarchy, but without dependancies on other Spring modules (core/beans/context modules according to http://mvnrepository.com/artifact/org.springframework/spring-jdbc/3.0.6.RELEASE)?

推荐答案

Spring-jdbc 直接依赖于以下库:spring-corespring-beansspring-tx.其余的依赖项是可选的,因此您实际上不需要它们.

Spring-jdbc has direct dependency to the following libraries: spring-core, spring-beans and spring-tx. The rest of the dependencies are optional, so you don't need them actually.

如果这些依赖对你来说已经很多了,那么你可以看看 Apache DbUtils.

If these dependencies are already a lot for you, then you might have a look at Apache DbUtils.

这篇关于没有 Spring 的 Spring JDBC 模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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