`
kanpiaoxue
  • 浏览: 1789242 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论
文章列表
chapter 3、Batch configuration 1、spring batch 的命名空间 spring xml中指定batch的前缀作为命名空间。 示例:   <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http: ...
 chapter 4、Running batch jobs  1、Spring Launch API:它的核心就是 JobLauncher 接口。 JobLauncher 的接口: public interface JobLauncher { public JobExecution run(Job job, JobParameters jobParameters) throws (…); }  JobLauncher 需要2个参数:Job , JobParameters。 ...
spring batch 官网: http://www.springsource.org/spring-batch 下载页面: http://static.springsource.org/spring-batch/downloads.html 文档: http://static.springsource.org/spring-batch/reference/index.html 数据库表格创建连接:DDL http://static.springsource.org/spring-batch/reference/html/metaDataSchema.html#exampl ...
目前经常开发java的J2EE程序放到Linux上面运行,或者开发可运行的jar放到Linux上面运行。很多的情况下,java的运行内容包含了操作系统的资源,在本地的Windows的环境下很难调试。这样就需要远程调试。eclipse提供了远程调试的功能。 我写了一个简单的remoteDebug.jar,对它进行debug。在Linux上面配置的运行参数如下:   java  -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n -jar remoteDebug.jar   在Eclipse中,选择要 ...
用于遍历文件夹里面所有的文件 public void walkFolder(File folder, List<File> files){ File[] tempFiles = folder.listFiles(); if(null == tempFiles){ return; }else{ for(File f : tempFiles){ if(f.isFile()){ files.add(f); }else{ walkFolder(f, files); } } } ...

List排序

    博客分类:
  • java
见到的List排序 public void testSort(){ List<Integer> list = new ArrayList<Integer>(); Random random = new Random(); for(int i = 0; i < 100; i++) list.add(random.nextInt(10000)); System.out.println(list); Collections.sort(list, new Comparator<Integer>(){ @ ...
在接收 JMS消息的时候,我们经常要在消息队列里面过滤出自己需要的消息,摒弃我们不需要的消息。这个时候就需要用到 JMS的selector功能。这里结合spring3.1,给出一个例子。   发送消息的配置:   <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-i ...
1秒=1000毫秒(ms) 1毫秒=1/1,000秒(s) 1秒=1,000,000 微秒(μs) 1微秒=1/1,000,000秒(s) 1秒=1,000,000,000 纳秒(ns) 1纳秒=1/1,000,000,000秒(s) 1秒=1,000,000,000,000 皮秒(ps) 1皮秒=1/1,000,000,000,000秒(s)   1毫秒=106
Properties 是java自带的读取配置文件的工具类。   /com/test/properties/test.properties 是一个准备好的properties文件,内容如下: hello_1=world1 hello_2=world2 hello_3=world3 hello_4=world4 hello_5=world5 hello_6=world6 hello_7=world7 hello_8=world8 hello_9=world9 hello_0=world0   java的源码如下: public class Proper ...
1、使用eclipse-jee-juno中tomcat启动后,它的tomcat控制台显示红色字体,和自己项目的log4j的字体颜色(黑色)不一致,感觉很奇怪。  2、在网上查找到了以下解决办法。   a、tomcat没启动时,双击eclipse下方的servers里面的服务器。   b、双击后会弹出一个配置窗体,如:"Tomcat v6.0 Server at localhost"。在配置窗体的server option 的选择中,把Publish module contexts to separate XML files 选择。保存。   问题解决。

Rsync exit codes

This is a list of rsync exit codes (rsync status codes / rsync error codes). 0 Success 1 Syntax or usage error 2 Protocol incompatibility 3 Errors selecting input/output files, dirs 4 Requested action not supported: an attempt was m ...
请查看:http://www.iteye.com/topic/149328
 下面的代码是自己写的: /** * Copyright 2012 * * All right reserved * * Created on 2012-8-31下午5:43:58 */ package com.test.md5; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.s ...

rsync简明教程

    ----------- rsync 简明教程 ---------------- @auther: kanpiaoxue Date time: 2011/10/14 12:57:14   ---------- [example] ---------------------- [purpose] 192.168.123.54 rsync server 192.168.123.16 rsync client client transfer the data to server.   [server setting setup] 进入到 123.54,进行服务器端 ...
Eclipse 自动生成 Ant的Build.xml 配置文件,生成的方法很隐蔽 选择你要生成Build.xml文件的项目,右键. Export-> General -> Ant Buildfiles . 点Next,再点Finish. 生成完毕.   希望使用的可以试试了。总算不用再傻傻的自己编写build.xml了。   引用自: http://blog.sina.com.cn/s/blog_53a99cf30100f4ci.html
Global site tag (gtag.js) - Google Analytics