jdbc中关闭了连接对象conn后,会自动关闭语句对象stat或rs吗?
还是两者都会自动关闭还是两者都不会自动关闭?
就是只写
conn.close();
不写 stat.close(); rs.close();可以吗?
谁给个权威的解答???
1分
会自动关闭
statement关闭后,由它产生的resultset自动关闭……继续阅读 »
11年前 (2015-04-12) 2600浏览 0评论
0个赞
log4j
–数据库中新建的日志表
CREATE TABLE [boxserver].[dbo].[Loginformation] (
[WDZLOGID] [int] IDENTITY (1, 1) PRIMARY KEY ,
[userId] INT NOT NULL,–用户ID
[usern……继续阅读 »
11年前 (2015-04-12) 2699浏览 0评论
0个赞
大家好,我用webspere6.1.0.17+struts2+spring+hibernate发布应用程序,服务器正常启动,访问jsp页
面可以,当使用struts2命名的路径 如:testWeb_test.action时 ,则报404错误。该应用程序在tomcat
发布能正常访问,在网上搜索到解决方案说在控制台-》应用程序服务器-》serve……继续阅读 »
11年前 (2015-04-12) 3049浏览 0评论
0个赞
sshservletnativeexception
严重: action: null
org.springframework.beans.factory.BeanCreationException: Error creating bean with name “”sessionFactory”” de……继续阅读 »
11年前 (2015-04-12) 1570浏览 0评论
0个赞
如题,在eclipse环境下具体要怎么生成coverage report,有什么简单的方法吗?
我用ant跑build。xml时,出现如下错误:
[junit] Test TestDie FAILED
[junitreport] Processing E:\eclipse workspace\Homework1\TESTS-Te……继续阅读 »
11年前 (2015-04-12) 2513浏览 0评论
0个赞
java精度doublefloat四舍五入
我想要得到一个数的2/3,然后四舍五入,比如数值为3,那么2/3则等于2
直接3*(2/3)这样在java中计算得出的结果是0,哪位大哥知道的指导下,麻烦给个实例代码参考 谢谢!
20分
直接使用2/3 都是int型的,计算的结果也是int型的,结果值就是0了
转为double型,计算可以得到小……继续阅读 »
11年前 (2015-04-12) 1660浏览 0评论
0个赞
javasqlmysql
sql=”select id,classifiedName,personNumber,hospitalDepartment,name,COUNT(deptCode) from ” +
“((select thc.id ,thc.classifiedName,thc.personNumbe……继续阅读 »
11年前 (2015-04-12) 1469浏览 0评论
0个赞
action :
public String list() {
try {
List<UserBean> ulist = userService.getAllUser();
Map<String, Object> map=new HashMap<String, Object>();
……继续阅读 »
11年前 (2015-04-12) 1484浏览 0评论
0个赞
高手帮忙看看哇
我在用android2.4.2,ndk和eclipse开发android
C++文件放在JNI里
NDK编译通过了
但是一上真机就出现个错误,求大牛指点原因
04-10 12:05:19.960: E/AndroidRuntime(11567): FATAL EXCEPTION: main
04-10 12:05:19.960:……继续阅读 »
11年前 (2015-04-12) 1839浏览 0评论
0个赞