摘要:
1.创建表空间 create tablespace example_tablespace datafile 'e:\****.dbf' size 10m reuse autoextend on next 1m maxsize unlimited; 2.创建用户,指定表空间,临时表空间 create 阅读全文
摘要:
c3p0配置 initialPoolSize 和minPoolSize 可以设为0吗?设0有坏处吗? c3p0配置 initialPoolSize 和minPoolSize 可以设为0吗?设0有坏处吗? c3p0配置 initialPoolSize 和minPoolSize 可以设为0吗?设0有坏处 阅读全文
摘要:
程序如果长时间不进行数据库操作,那么数据源中的 Connection 很可能已经断开。其原因有可能是防火墙,或者连接的数据库设置的超时时间。这里使用的是 C3P0 连接 oracle 数据库,引起的异常信息为: org.springframework.transaction.TransactionS 阅读全文
摘要:
JdbcUtil类: [java] view plain copy package com.xiaohui.jdbc.util; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.Result 阅读全文
摘要:
利用Maven来管理项目中的JAR包,同时使用Spring在业务处理层进行事务管理。数据库使用MySq,数据处理层使用Spring和Mybatis结合。 本案例代码主要结构如图: 1.数据库脚本 2.maven配置文件pom.xml 3.数据库配置文件config.properties 4.Spri 阅读全文
摘要:
背景:有时不是记住密码就方便,有时是记录了反而不好,不安全呵。1)首先大部分浏览器都是根据表单域的type="password"来判断密码域的,所以针对这种情况可以采取“动态设置密码域”的方法:<input type="text" name="password" onfocus="this.type 阅读全文
摘要:
jQuery如何去判断页面是否有父页面? 是要判断当前页面是否被嵌入在frame里吗? 1 2 3 if (top != self) { alert('我在框架里'); } 是要判断当前页面是否被嵌入在frame里吗? 1 2 3 if (top != self) { alert('我在框架里'); 阅读全文
摘要:
在做交叉报表列头的排序时,遇到这三个问题,下面具体来说一下。 设计的数据库的表结构如图1所示: 图1 要处出来student_name_,s.grade_,s.subject_name_,这三个属性,当时我是这样写的sql语句: select s.student_name_, s.grade_, s 阅读全文
摘要:
We are trying to migrate from Struts 2.2 to Struts 2.3, after getting to run the project I am seeing the following error in the console, I understand 阅读全文
摘要:
jax请求默认的都是异步的如果想同步 async设置为false就可以(默认是true)var html = $.ajax({ url: "some.php", async: false}).responseText; 或者在全局设置Ajax属性$.ajaxSetup({ async: false 阅读全文