自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(67)
  • 收藏
  • 关注

VO与PO之间相互转换

转换基类: [code="java"]public abstract class BaseConverter { private static Logger logger = LoggerFactory.getLogger(BaseConverter.class); /** * 值对象与域对象之间属性复制 * * @...

2014-11-13 13:55:29 1922

删除重复记录的高效SQL

删除重复记录的高效SQL:delete from student pdi where pdi.rowid in (select t1.rowid FROM student t1, (select t.s_no, max(t.id) max_id from student t group by t.s_no having count(*) > 1) t2 where t1.s...

2014-11-07 11:55:17 127

toString 方法

[code="java"] @Override public String toString() { StringBuilder buf = new StringBuilder(); Method[] methods = this.getClass().getMethods(); boolean isFirst = true; for (int i = 0, n =...

2014-11-06 14:28:12 132

ThinkPHP demo

UserController.class.php

2014-05-07 15:13:47 138

input 字母大小写转换

$("#textbox").bind('keyup', function (e) { if (e.which >= 97 && e.which

2014-03-06 12:55:05 181

HTML5 例子

http://www.softechallenger.com/download/?ISBN=978-7-121-15685-4

2014-02-20 09:51:00 107

红米手机

http://p.www.xiaomi.com/open/131219/book/hongmi.html?_v=12230111&n=0

2013-12-25 10:25:18 81

Java 反射研究Demo

需要JDom.jar[code="java"]package test;import java.io.FileInputStream;import java.io.InputStream;import java.lang.reflect.Method;import java.math.BigDecimal;import java.util.ArrayList...

2013-10-16 14:27:52 90

spring ckeditor and prettify sample

POM.XML[code="java"] org.springframework spring-core ${spring.version} org.springframework spring-web ${spring.version} org.springframework sp...

2013-09-06 18:23:15 99

JMX with Spring

[code="java"]import java.util.Date;import org.apache.commons.lang.StringUtils;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import org.springframework.beans.BeansException;impor...

2013-08-19 11:47:54 105

原创 JMX 与Tomcat 集成

set "JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.m...

2013-08-13 21:31:22 82

maven demo

mvn test -Dmaven.test.failure.ignore=true -Dapp.properties.path=conf/area/sz -P profile-A[code="java"]public class EncryptedPropertyPlaceholderConfigurer extends PropertyPlaceholderConfigurer {...

2013-08-09 17:34:48 84

spring send JMS message demo

[code="java"]import java.util.Date;import java.util.HashMap;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import org.springframework.beans.factory.annotation.Autowired;import ...

2013-08-08 19:03:50 179

spring data demo part 2

[code="java"]import java.util.LinkedList;import java.util.List;import org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo;import org.springframework.orm.jpa.persistenceuni...

2013-08-08 16:35:33 99

原创 spring data demo

[code="java"]import java.io.Serializable;import java.util.Date;import javax.persistence.Column;import javax.persistence.Entity;import javax.persistence.GeneratedValue;import javax.persis...

2013-08-08 16:30:40 123

maven 配置例子

[code="java"] 4.0.0 com.aa.xx demo pom 0.0.1-SNAPSHOT demo demoApplication http://www.xx.com common core static-data messaging confirmation integration-tes...

2013-08-07 13:24:52 104

原创 Spring JPA configuration Demo

2013-08-02 14:02:07 112

原创 How to start and stop Job in Spring Integration by annually.

How to start and stop Job in Spring Integration by annually. SourcePollingChannelAdapter spca = (SourcePollingChannelAdapter) context.getBean("jobBeanID");System.out.println(...

2013-08-02 13:51:32 101

Spring JPA Example

Spring JPA Example

2013-07-11 00:34:30 154

spring integration summary

2013-07-05 09:35:21 79

JDOME 特殊字符过滤

如果是因为这些特殊的控制字符,可以这样替换一下xmlContent.replaceAll("[\\x00-\\x08\\x0b-\\x0c\\x0e-\\x1f]", "")

2013-02-27 13:14:25 77

hibernate 级联配置

Hibernate 复合主键级联操作配置:@Audited@Entity@Table(name = "REFERENCE_CODE")@NamedQueries({ @NamedQuery(name = "ReferenceCode.findAll", query = "SELECT p FROM ReferenceCode p"), @NamedQuery(n...

2012-10-15 15:24:35 62

文件备份

#!/bin/sh# $1 is the path to the files# $2 is the prefix of the archive# $3 is the which day ago to archive# exampleFILE_PATH=$1PREFIX=$2DAYS=$3cd $FILE_PATH/bin/ls -lrt $FILE_PA...

2012-09-28 12:44:37 80

原创 JBPM安装笔记-- GPD

GPD流程设计器1)在JBPM安装目录下有GPD的Eclipse插件, 路径为:install/src/gpd/*.zip2)HELP-〉Install new software, click add, next ....配置JBPM运行环境1)window --- preferences2)jboss jbpm --- jbpm4 ----Runtime3)click...

2012-09-27 16:24:41 98

原创 connect database example with sqlplus

sql文件: set echo off;set feedback off;set heading off;set linesize 300;set newpage none;select to_char(SEND_DATE, 'yyyy-mm-dd') as SEND_DATE, count(INQ_ID) as total from abc where TRUNC...

2012-09-27 16:00:38 76

原创 shell example.

#!/bin/sh#=============================================================================# Author : Gareth Liao# Desc : runMonitorInquireIncrease.sh# Run: sh runMonitorInquireIncrease.sh I...

2012-09-27 15:56:30 106

原创 div 垂直居中显示

div 垂直居中显示   function showWindow(){ mask=document.createElement("div"); var W=$(document).width(); var H=$(document).height(); mask.id="ma...

2012-09-26 17:03:27 74

GET 方式传中文参数

GET 方式传中文参数注意事项:此方式下为ISO-8859-1,需先转换成UTF-8格式。POST方式传中文参数, 设置request的编码为UTF-8即可。

2012-09-13 11:14:08 191

shell 语法基础知识

一、基本语法1.1、shell文件开头shell文件必须以下面的行开始(必须方在文件的第一行): #!/bin/sh 符号#!用来告诉系统它后面的参数是用来执行该文件的程序。在这个例子中我们使用/bin/sh来执行程序。 当编辑好脚本时,如果要执行该脚本,还必须使其可执行。 要使脚本可执行:运行chmod +x filename 这样才能用./filename 来运行...

2012-09-11 16:09:59 116

shell 脚本

赋值过程中,等号两边无[b]空格[/b]。获取进程号,并杀死进程:PID=`ps gaux | grep test.sh | grep -v grep | awk '{print $2}'`; kill -9 $PID;数学运算,需要 expr 命令add=`expr $newTotal - $oldTotal`;判断文件是否存在:if [ -f $file...

2012-09-11 15:51:17 72

Android 数据库操作封装,简化操作

package com.abc.lyq.util;import java.util.List;import android.content.ContentValues;import android.content.Context;import android.database.Cursor;import android.database.SQLException;i...

2012-08-08 10:15:49 113

原创 色彩大全 Android 颜色值

#FFFFFF #FFFFF0 #FFFFE0 #FFFF00 #FFFAFA #FFFAF0 #FFFACD #FFF8DC #FFF5EE #FFF0F5 #FFEFD5 #FFEBCD #FFE...

2012-08-08 10:10:19 63

原创 Android系统常用Intent大全

http://chroya.iteye.com/blog/7247722010-07-29Android系统常用Intent大全文章分类:移动开发1.从google搜索内容Intent intent = new Intent();intent.setAction(Intent.ACTION_WEB_SEARCH);intent.putExtra(SearchMa...

2010-10-15 17:21:28 91

原创 Android中去除标题,全屏,获得屏幕方向及键盘状态

Android中去除标题,全屏,获得屏幕方向及键盘状态文章分类:移动开发Android全屏设置代码 如果你在开发游戏或一个主题风格很特别的应用可能需要全屏显示,在Android中全屏窗口的代码很简单,主要分为两个步骤和一个注意点: requestWindowFeature(Window.FEATURE_NO_TITLE); //隐藏标题 getWindo...

2010-10-15 15:51:29 93

原创 Android中VideoView播放当前工程中视频文件的方法

http://dengzh.iteye.com/blog/714058

2010-10-15 15:49:54 122

原创 [转]Android开发者必须深入学习的10个应用开源项目

http://hailinhe1986-163-com.iteye.com/blog/714190

2010-10-15 15:33:48 93

原创 Android Intent的几种用法全面总结

http://vvsongsunny.iteye.com/blog/785452

2010-10-15 15:31:14 76

原创 Android读取txt的方法

1、放入到资源文件夹里面,也就是所创建android工程的res下面。 我们可以在里面建立文件夹,放置我们要读取的文件。 例如:res里面建立目录raw,将要读取的文件abc.bin放入到该文件夹下,此时通过 openRawResource()方法即可读取。代码为 InputStream is = getResources().openRawResource(R.raw.abc...

2010-10-15 15:26:03 145

原创 mysql group_concat用法

http://blog.sina.com.cn/s/blog_4e808acf01009qna.htmlSELECT student_id, GROUP_CONCAT(courses_id ORDER BY courses_id DESC) AS courses FROM student_courses WHERE student_id=2 GROUP BY student_id;...

2010-09-30 13:46:18 64

原创 Httpclient 下载资源

HttpClient 下载网络资源所需commons-httpclient-3.0.1.jar及其依赖包package cn.test.softcrawltool.utils.net;import java.io.BufferedReader;import java.io.DataOutputStream;import java.io.File;import j...

2010-07-30 13:28:34 137

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除