- 浏览: 127926 次
- 性别:
- 来自: 深圳
最新评论
文章列表
Excel View 4 Spring
@RequestMapping(value = "/exportQualifiedPersonList", method = RequestMethod.GET)
public ModelAndView exportQualifiedPersonList(
Model model,
HttpServletRequest request,
HttpServletResponse response,
CertificateInternalQueryDto inputDto) throws JSONExceptio ...
浏览器关闭事件
- 博客分类:
- javascript
$(document).ready(function() {
$(window).bind('beforeunload', function(e) {
e = e || window.event;
if ($.browser.mozilla) {
if (confirm('您的内容尚未保存,确定要离开本页吗?---mozilla')) {
return window.close();
} else {
return false;
}
} else {
return '您的内容尚未保存,确定要离开本页吗?---other borwer';
...
/**
* 解码实体的所有String类型字段。用于解决导出时输入参数中文乱码问题,和前台encodeURI(encodeURI("中文字符"))方法结合使用
* 。
*
* @param entity
* 待解码实体
* @throws Exception
*/
public static <T> void decodeEntityStringFileds(
T entity) throws Exception
{
PropertyDescriptor[] propertyDescriptors ...
打开文件:D:\mydomain\bin\setDomainEnv.cmd
增加2行语句:
set WLS_MODULES=%WL_HOME%\..\modules
set PRE_CLASSPATH=%WLS_MODULES%\javax.persistence_1.1.0.0_2-0.jar;%WLS_MODULES%\com.oracle.jpa2support_1.0.0.0_2-1.jar
-------------命令行配置domain-------------
29---
/bea/wlserver_10.3/common/bin/config.sh
131---
/bea/oracle_common/common/bin/config.sh
--查看修改ORACLE表空间
--1、查看所有表空间信息
select a.tablespace_name
,round(a.bytes_alloc / 1024 / 1024, 2) megs_alloc
,round(nvl(b.bytes_free, 0) / 1024 / 1024, 2) megs_free
,round((a.bytes_alloc - nvl(b.bytes_free, 0)) / 1024 / 1024, 2) megs_used
,round((nvl(b.bytes_free, 0) / a.bytes_all ...
root/passwd
su - oracle
sqlplus / as sysdba
关闭db: shutdown immediate
重启db :startup
重启系统: reboot
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* 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- ...
js定时器
生成验证码 数学+字母
- 博客分类:
- 算法
- java web后端+框架
public static String getCharAndNumr(int length)
{
StringBuffer buff = new StringBuffer();
int index = 0;
for (int i = 0; i < length; i++) {
//char c = 'a';
int random = (int) (Math.random() * 1000);
if (i > 3) {
index = random % 3;
} else {
index ...
package com.achievo.ems.web.service.score;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.Reader;
import java.sql.Clob;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaDat ...
package com.achievo.ems.web.util;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.math.BigDecimal;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.util.Arr ...
--oracle树查询
select * from FUNC T WHERE T.URL = 'examRoom/initExamRoomTicketList';
SELECT *
FROM FUNC
START WITH FUNC_ID = '13-02-03-01'
CONNECT BY PRIOR FUNC_ID = PARENT_ID;
SELECT *
FROM FUNC
START WITH FUNC_ID = '13-02-03-01'
CONNECT BY PRIOR PARENT_ID = FUNC_ID;
--考试信息--8a85f70342c046bd0142 ...
ZipUtils
- 博客分类:
- java web后端+框架
/**
* Utility to Zip and Unzip nested directories recursively.
*
* @author Robin Spark
*/
public class ZipUtils {
private static Logger logger = LoggerFactory.getLogger(ZipUtils.class);
/**
* Creates a zip file at the specified path with the contents of the
* specified directory. NB:
* ...
排序工具
- 博客分类:
- java web后端+框架
/**
* 排序工具
*
* @author vernon.chen
*
*/
public class OrderUtil {
/**
* 构建排序语句
*
* @param pageable
* 排序对象
* @return 排序语句
*/
public static StringBuffer buildOrderBy(Pageable pageable) {
StringBuffer orderBy = new StringBuffer("");
Iterator<Order> i ...