咖啡堂
yongguang423 · 共 66 篇文章
Css Tips -解决IE 6不支持 fixed
/** 解决IE 6不支持 fixed IE6 hack */ * html,html body{ background-image: url("about:blank"); background-attachment: fixed; } * html #menu { position: absolute; bottom: auto; top: expression(100+((e=document.documentElement.scrollTop)?e:document.body.scrollTop)+'px'); }
2015-06-28 17:00 · 评论(0)
Spring 源码分析实用工具Assert
/* * Copyright 2002-2007 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require…
2013-11-22 21:43 · Spring · 评论(0)
Spring 源码分析 之实用工具ObjectUtils
/* * Copyright 2002-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require…
2013-11-22 21:35 · Spring · 评论(0)
Oracle表空间操作
1.查看所有表空间使用情况 select b.file_id 文件ID号, b.tablespace_name 表空间名, b.bytes/1024/1024||'M'字节数, (b.bytes-sum(nvl(a.bytes,0)))/1024/1024||'M' 已使用, sum(nvl(a.bytes,0))/1024/1024||'M' 剩余空间, 100 - sum(nvl(a.bytes,0))/(b.bytes)*100 占用百分比 from dba_free_space a,dba_data_files b where a.file_id=b.file_id group by…
2013-09-24 15:31 · 评论(0)
AD查询1000条限制和解决方案
项目中经常需要将AD域中的组织架构数据同步到系统中,这里就需要访问AD并查询出对应的组织单元和用户信息,AD在进行查询的时候有数量的限制,缺省情况下AD只允许一次性查询1000条数据,这就意味着如果你要一次性查询1000以上的数据,则AD只会返回1000条数据给你。 解决办法是:修改查询数量限制。具体步骤如下: 1. 在“开始”-〉“运行”-〉输入:“ ntdsutil”,回车; 2. 输入:“ldap policies”,回车; 3. 输入:“connections”,回车; 4. 输入:“connect to domain 当前域名”在中集案例中,域名是:cimc.com 5. 连接提示…
2012-08-28 17:10 · 评论(0)
js关闭窗口,不提示
<input type="button" class="otterbtn" value="关闭" onclick="window.opener=null;window.open('','_self');window.close();"/>
2012-05-25 14:22 · 评论(0)
jquery 表格鼠标 变色
<script type="text/javascript"> $(document).ready(function() { $(".frame tr").mouseover(function() { if ($(this).index() > 0) { $(this).addClass("over"); } }).mouseout(function() { if ($(this).index() > 0) { $(this).removeClass("over"); } }); }); </script> <style type="text/css"> td.locked { positi…
2012-04-19 14:55 · 评论(0)
oracle 导入数据 clob blob字段表空间错解决方案
首先在导出数据的表结构sql,, 修改sql中的表的 表空间,执行后再导入数据 imp hxjj/hxjj@orcl full=y file=d:\datanewsmgnt.dmp ignore=y ignore=y
2012-04-14 13:17 · 评论(0)
oracle生成时间列表
SELECT LEVEL + DATE '&starDate' - 1 dateFlag FROM dual CONNECT BY LEVEL < DATE '&endDate' - DATE '&starDate' + 2; 在oracle生成时间列表,从starDate' 到starDate' 时间列表。
2012-04-13 18:14 · 评论(0)
JQuery操作表(table)
一.数据准备 <table id="table1"> <tr><th>文章标题</th><th>文章分类</th><th>发布时间</th><th>操作</th></tr> <tr><td>测试</td><td>测试</td><td>测试</td><td>测试</td></tr> <tr><td>测试</td><td>测试</td><td>测试</td><td>测试</td></tr> <tr><td>测试</td><td>测试</td><td>测试</td><td>测试</td></tr> </table> <table id="table2"> <tr><td>文章标题</td><td>…
2012-04-13 09:37 · 杂项 · 评论(0)
Spring 源码之判断属性基本类型
判断是否是基本类型 /** * Check if the given type represents a "simple" property: * a primitive, a String or other CharSequence, a Number, a Date, * a URI, a URL, a Locale, a Class, or a corresponding array. * <p>Used to determine properties to check for a "simple" dependency-check. * @param clazz the type t…
2012-04-04 22:46 · 评论(0)
Transaction rolled back because it has been marked as rollback-only异常解决
原来是这样设置的: <tx:attributes> <tx:method name="*" read-only="true"/> </tx:attributes> 发现selectA调用selectB,如果selectB抛出Exception,selectA中捕获Exception但是并不继续向外抛出,最后会出现错误。 Transaction rolled back because it has been marked as rollback-only 纠其原理其实很简单,在selectB返回的时候,transaction被设置为rollback-only了,但是selectA正常消化掉,没…
flash Builder eclipse 恢复英文
Flash Builder 安装之后myeclipse 会被汉化,用着非常不爽,恢复英文的办法: 在myeclipse.ini 最后加上 -Duser.language=en,就可以了。
2012-02-26 20:47 · 评论(0)
JSP include 处理IECSS不兼容
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <% int w1=6,w2…
2012-02-17 22:58 · 评论(0)