要关的
先关闭statement,再关闭connection
先关闭statement,再关闭connection
解决方案 »
- 求J2EE教程推荐!!
- 都来晒晒你们的开发经历、开发世界!给我们这些应届生指条明路
- 关于J2EE工程目录和业务层疑问
- 360安全卫士7.1借口兼容问题诱使用户强行卸载金山网盾,金山安全认为,360安全卫士的这种卸载行为是赤裸裸的病毒行为
- iText 设置中文字体
- spring_hibernate整合时遇到的问题,新手真不知怎么解决,求大神指点,在线等
- 第一个j2ee程序
- 在java中如何显示pdf
- Delphi如何通过CORBA去使用EJB??
- mybatis里是不是配置SQL的XML我们习惯在前面加xxMapper.xml啊 resultType和resultMap啥区别啊
- Hibernate 查询语句 join on 不支持 ,用什么方式解决?
- websphere数据源配置文件在哪里?
时conn关闭以后,statement也不起做用了而已!~!
所以在平常我们只用关闭conn就可以了!~!
如果做得细致的话就可以关闭statement,
但是我还是建议只要关闭conn就可以了!~!
呵呵
that created them is closed. However, it is good coding practice for applications to
close statements as soon as they have finished processing them. This allows any
external resources that the statement is using to be released immediately.jdbc3.0文档上的原话