没有 Spring 的 Spring JDBC 模板 [英] Spring JDBC template without Spring
问题描述
是否有类似 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-core
、spring-beans
和spring-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屋!