- 浏览: 81903 次
- 性别:
- 来自: 北京
-
最新评论
文章列表
maven 配置例子
- 博客分类:
- Web开发
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xs ...
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:int="http://www.springframework.org/schema/integration"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:int-stream="http ...
How to start and stop Job in Spring Integration by annually.
<int-jpa:inbound-channel-adapter id="jobBeanID" auto-startup="${auto.start}" entity-manager="em"
send-timeout="${channel.default.timeout}" channel="queryJobListChannel" expect-singl ...
Spring JPA Example
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:int="http://www.springframework.org/schema/integration"
xmlns:int-jpa="http:/ ...
JDOME 特殊字符过滤
- 博客分类:
- Web开发
如果是因为这些特殊的控制字符,可以这样替换一下
xmlContent.replaceAll("[\\x00-\\x08\\x0b-\\x0c\\x0e-\\x1f]", "")
hibernate 级联配置
- 博客分类:
- database
Hibernate 复合主键级联操作配置:
@Audited
@Entity
@Table(name = "REFERENCE_CODE")
@NamedQueries({
@NamedQuery(name = "ReferenceCode.findAll", query = "SELECT p FROM ReferenceCode p"),
@NamedQuery(name = "ReferenceCode.findbyRefcode", query = "SELECT code FROM R ...
#!/bin/sh
# $1 is the path to the files
# $2 is the prefix of the archive
# $3 is the which day ago to archive
# example
FILE_PATH=$1
PREFIX=$2
DAYS=$3
cd $FILE_PATH
/bin/ls -lrt $FILE_PATH | grep xml | grep "`date +"%b %e" --date="$DAYS days ago"`" | /bin/awk '{print ...
JBPM安装笔记-- GPD
- 博客分类:
- JBPM
GPD流程设计器
1)在JBPM安装目录下有GPD的Eclipse插件, 路径为:install/src/gpd/*.zip
2)HELP-〉Install new software, click add, next ....
配置JBPM运行环境
1)window --- preferences
2)jboss jbpm --- jbpm4 ----Runtime
3)click add, location: jbpm home
4)create user lib for jbpm(jbpm lib and jbpm.jar), click source attachment 关联源代码。
...
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(SEND_DATE)>TRUNC(sysdate-3) and TRUNC(SEND_DATE)<=TRUNC(sysdate) group by (SEND_DATE) order by 1;
qui ...
shell example.
- 博客分类:
- shell
#!/bin/sh
#=============================================================================
# Author : Gareth Liao
# Desc : runMonitorInquireIncrease.sh
# Run: sh runMonitorInquireIncrease.sh Inquiry
#=============================================================================
export SNARK_HOME= ...
div 垂直居中显示
- 博客分类:
- 页面
div 垂直居中显示
<div id="popbox_sw" class="popbox_sw" style="display:none;position:absolute;z-index:100; border:solid 1px #79BCFF; background-color: #EEF2FB;">
<div class="popupheader"><i18n:message key="cert.assigncertsum.title.submit.result ...
GET 方式传中文参数
- 博客分类:
- javascript
GET 方式传中文参数注意事项:
此方式下为ISO-8859-1,需先转换成UTF-8格式。
POST方式传中文参数, 设置request的编码为UTF-8即可。
一、基本语法
1.1、shell文件开头
shell文件必须以下面的行开始(必须方在文件的第一行):
#!/bin/sh
符号#!用来告诉系统它后面的参数是用来执行该文件的程序。在这个例子中我们使用/bin/sh来执行程序。
当编辑好脚本时,如果要执行该脚本,还必须使其可执行。
要使脚本可执行:
运行chmod +x filename 这样才能用./filename 来运行
1.2 注释
在进行shell编程时,以#开头的句子表示注释,直到这一行的结束。我们真诚地建议您在程序中使用注释。
如果您使用了注释,那么即使相当长的时间内没有使用该脚本,您也能在很短的时间内明白该脚本的作用
及工 ...
赋值过程中,等号两边无空格。
获取进程号,并杀死进程:
PID=`ps gaux | grep test.sh | grep -v grep | awk '{print $2}'`;
kill -9 $PID;
数学运算,需要 expr 命令
add=`expr $newTotal - $oldTotal`;
判断文件是否存在:
if [ -f $fileName ]
获取系统时间
system_time=$(date +'%Y-%m-%d %H:%M:%S');
时间比较:
ftime=`ls -l $file_name | awk '{print $(NF-1)}'`;
ctim ...