- 浏览: 16886 次
- 性别:
- 来自: 杭州
最新评论
文章列表
sql 预习
- 博客分类:
- LearningNotes
-------游标
select o.sid, oSUSEr, machine, count(*) num_curs
from v$open_cursor o, v$session s
where user_name = 'SPMSADMIN'
and o.sid = s.sid
group by o.sid, osuser, machine
order by num_curs desc;
select q.sql_text
from v$open_cursor o, v$sql q
where q.hash_value = o.hash_v ...
package com.h3c.oos.util;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintStream;
import java.sql.PreparedStatement;
import java.util.ArrayList;
import java.util.List;
import javax.xml.parsers.ParserConfigurationException;
import javax.x ...
Mybatis 二级缓存
- 博客分类:
- LearningNotes
一个项目中肯定会存在很多共用的查询数据,对于这一部分的数据,没必要
每一个用户访问时都去查询数据库,因此配置二级缓存将是非常必要的。
Mybatis的二级缓存配置相当容易,要开启二级缓存,只需要在你的Mapper
...
package com.h3c.oos.util;
/* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyri ...
原文:http://www.cnblogs.com/yangzhilong/p/4052063.html
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.regex.Matcher;
import java.util.r ...
Mybatis 打印完整sql
- 博客分类:
- LearningNotes
package org.apache.ibatis.logging.jdbc;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.sql.CallableStatement;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import org.apache.commons.lang.StringUtils; ...
右键菜单
- 博客分类:
- LearningNotes
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>jQuery实现右键菜单 - web前端网</title>
<style>
body{padding:0;margin:0;font:normal 12px/25px "\5FAE\8F6F\96C5\9ED1";color:#333;}
ul,li{margin:0;padding:0;}
li{list-style:none;}
...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<settings>
<setting name="lazyLoadingEnabled" ...
select2
- 博客分类:
- LearningNotes
<link href="${base }/select2/select2.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="${base }/select2/jquery-1.7.2.js"></script> <script language="JavaScript" src="${base }/select ...
package ...
import java.io.File;
import java.util.Properties;
import javax.activation.DataHandler;
import javax.activation.FileDataSource;
import javax.mail.*;
import javax.mail.internet.*;
import javax.mail.util.ByteArrayDataSource;
public class JavaMail {
private MimeMessage ...
/**
* zhaochongli
* 如果通过了多级反向代理的话,X-Forwarded-For的值并不止一个,而是一串IP值
取X-Forwarded-For中第一个非unknown的有效IP字符串。如:
X-Forwarded-For:192.168.1.110, 192.168.1.120, 192.168.1.130, 192.168.1.100
用户真实IP为: 192.168.1.110
* @param request
* @return
*/
public static String g ...
job
- 博客分类:
- LearningNotes
1:每分钟执行
Interval => TRUNC(sysdate,'mi') + 1/ (24*60)
或
Interval => sysdate+1/1440
2:每天定时执行
例如:每天的凌晨1点执行
Interval => TRUNC(sysdate) + 1 +1/ (24)
3:每周定时执行
例如:每周一凌晨1点执行
Interval => TRUNC(next_day(sysdate,'星期一'))+1/24
4:每月定时执行
例如:每月1日凌晨1点执行
Interval =>TRUNC(LAST_DAY(SYSDATE)) ...
popup
- 博客分类:
- LearningNotes
<%@page import="java.io.*, java.util.*"%>
<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/struts-html-el.tld" prefix="html" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML ...
table 树
- 博客分类:
- LearningNotes
<%@page pageEncoding="utf-8"%> <%@ include file="../base/tagslib.jsp" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xht ...
package com.forever.util;
import java.io.UnsupportedEncodingException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.security.Security;
import javax.crypto.BadPaddingException;
import javax.crypto.Ci ...