`
寻找
  • 浏览: 26291 次
  • 性别: Icon_minigender_2
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
Spring2.0.1以后的版本已经支持配置多数据源,并且可以在运行的时候动态加载不同的数据源。通过继承 AbstractRoutingDataSource就可以实现多数据源的动态转换。具体的配置如下: 一、首先需要写一个静态的键值对照和获得和设置上下文的类: 这个类主要在使用的时候当作获得数据源的标志使用,设置上下文环境和获得上下文环境。   package com.ibm.banking.framework.core.datasource; public class CustomerContextHolder { public static final String ...
见附件
 iText是著名的开放源码的站点sourceforge一个项目,是用于生成PDF文档的一个java类库。通过iText不仅可以生成PDF或rtf的文档,而且可以将XML、Html文件转化为PDF文件。   iText的安装非常方便,在http://www.lowagie.com/iText/download.html - ...
    1. public static boolean isEmpty(String str)     判断某字符串是否为空,为空的标准是 str==null 或 str.length()==0     下面是 StringUtils 判断是否为空的示例:     StringUtils.isEmpty(null) = true  
两个数组: import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.Iterator; import java.util.Set; public class Test { /** * 两个数组合并,去掉重复的,然后再排序 */ public static void main(String[] ar ...
java bean对象 实现接口RowMapper用来处理查询出来的结果集 public class Account implements RowMapper<Account> { private String accountId; private String bankId; private String individualId; private String MBankId; private String EBankId; private String identityNum; private St ...
计算出本月第一天到最后一天的日期: --select date(rtrim(char(year(min(start_time))))||'-'||rtrim(char(month(min(start_time))))||'-1') as startTime,date(rtrim(char(year(max(start_time))))||'-'||rtrim(char(month(max(start_time)+1 month)))||'-1') as endTime from table_A t; 这个语句有点问题,月份是12月的时候,计算的年,没变化。   计算出 ...
quartz-spring.xml的配置:   <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.springfram ...

quartz时间设置

    博客分类:
  • java
序号 说明  是否必填 允许填写的值 允许的通配符 1 秒 是 0-59 ,           - * / 2 分 是 0-59 ,           - * / 3 小时 是 0-23 ,           - * / 4 日 是 1-31,          - * ? / L W 5 月 是 1-12 or JAN-DEC ,  - * / 6 周 ...
Global site tag (gtag.js) - Google Analytics