`
文章列表
应用程序用tomcat部署,每过一段时间,比方说有一个晚上应用程序没有被调用,然后一旦程序访问MySQL数据库,就会抛出异常:java.sql.SQLException: Connection.close() has already been called. Invalid operation in this state com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Connection.close() has already been 网上找了很多解决方案均无效,后来改用c3p0链接池,马 ...
style="position:absolute; left:0; height:expression(document.body.clientHeight-104)" 页面调了好久终于出来了,expression先计算再输出! 下面是网上差到的资料,虽然都知道,但是都忘得差不多了,还是记下来以备后用! IE中:document.body.clientWidth ==> BODY对象宽度document.body.clientHeight ==> BODY对象高度document.documentElement.clientWidth ==> ...
Javascript代码 //startdate和enddate的格式为:yyyy-MM-dd hh:mm:ss //当date1在date2之前时,返回1;当date1在date2之后时,返回-1;相等时,返回0 function datecompare(date1, date2){ var strdt1=date1.replace("-","/"); var strdt2=date2.replace("-","/"); var d1 = ...
public String getIpAddr(HttpServletRequest request) { String ip = request.getHeader("x-forwarded-for"); if(ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) { ip = request.getHeader("Proxy-Client-IP"); } if(ip == null || ip.length() == 0 || "unkn ...
Global site tag (gtag.js) - Google Analytics