2012年4月17日

JDBC Class.forName();

摘要: 转自:http://blog.csdn.net/jlhnxly/article/details/6730384使用JDBC时,我们都会很自然得使用下列语句:Class.forName("com.mysql.jdbc.Driver");Stringurl="jdbc:mysql://127.0.0.1/test?useUnicode=true&characterEncoding=utf-8";Stringuser="";Stringpsw="";Connectioncon=DriverManager.getC 阅读全文

posted @ 2012-04-17 20:54 Paul_bai 阅读(365) 评论(0) 推荐(0) 编辑

我的问题集(JavaEE)

摘要: 1) Tomacat6开启后自动关闭 2012.4.17原因:MyEclipse启动后端口和Tomcat冲突了。 查看端口就会发现javaw会占用8080,8005,8009端口,以至于tomcat默认的端口全都被占用,解决办法:先关闭MyEClipse,然后就可以启动Tomcat了,再开Myeclipse也没问题了。2)Myeclipse部署到Tomcat时出错: “the selected server is enabled,but is not configured properly.deployment to it will not be permitted until the... 阅读全文

posted @ 2012-04-17 20:51 Paul_bai 阅读(194) 评论(0) 推荐(0) 编辑

导航