- 博客(31)
- 收藏
- 关注
原创 log4j实战
LOG4J 实战配置一、 配置根Logger,其语法为: log4j.rootLogger = [ level ] , appenderName1, appenderName2, … (说明:可以自定义logger(log4j.logger.packageName=[level],appenderName1,…) 1)level:OFF>FATAL>ERROR>WARN>INFO...
2010-01-15 17:28:41 229
ext开发工具
JSEclipse(Eclipse插件)Eclipse的Ext 2.0.2智能提示.它提供了非常准确的Ext API提示。1,下载并安装 JSEclipse 插件. 下载地址:http://labs.adobe.com/technologies/jseclipse/2,用JSEclipse随便打开一个.js文件,这时会出现 JSEclipse 菜单.选择 Add lib...
2009-12-25 12:39:53 228
jseclipse在eclipse中的安装
js 写道三种安装方式:1、在线安装2、下载安装包进行安装3、下载解压缩包进行安装一、在线安装方式: a、打开Help窗口,即:Help > Software Update. 选择 Find and Install b、选择 "Search for new features to install",点击 Next c、点击 "New Remo...
2009-12-25 11:40:02 312
oracle 列操作
数据库中存储数据的方式: 规则表---〉分区表 索引组织表 簇修改列名alter table 表明 rename column rename 老列名 to 新列名 添加 字段 alter table 表名 add(字段名 类型); 删除字段 alter table 表名 drop column 字段名修改列属性 alter table 表名 modify (字段名 ...
2009-12-24 16:25:17 163
JPA,未来的持久化标准
近年来ORM(Object-Relational Mapping;对象关系映射,即实体对象和数据库表的映射)技术市场人声音鼎沸,异常热闹, Sun在充分吸收现有的优秀ORM框架设计思想的基础上,制定了新的JPA(Java Persistence API)规范。 那么什么是JPA呢?JPA是通过JDK5.0注解或XML描述对象-关系表的映射关系,并将运行期实体对象持久化到数据库中去。 这里我们要先谈...
2009-12-24 10:05:13 87
extremprocess3
//续2 for(Integer in : exception.keySet()) { ArrayList<Date> ds = exception.get(in); if(in == 100) { for(Date d : ds) { ws[2].addCell(new Label(0,i,Stri...
2009-12-02 17:45:35 111
extremprocess2
//续1 WritableCellFormat cf = new WritableCellFormat(new WritableFont(WritableFont.TIMES,10,WritableFont.NO_BOLD)); cf.setBorder(Border.ALL, BorderLineStyle.HAIR, Colour.BLUE); cf.setAlignm...
2009-12-02 17:45:02 114
simple2
@SuppressWarnings("deprecation") public void deal(Map<Integer, ArrayList<Date>> map) throws Exception { Date d = map.values().iterator().next().get(0); int beginStatistic = Const...
2009-12-02 17:03:14 123
cce-stop
#!/usr/bin/kshif [ `echo $0 | grep -c "/"` -gt 0 ];then cd ${0%/*} fi#check whether config.def file existif [ ! -f "config.def" ]then writeLog "ERROR" "stop" "the config.def f...
2009-12-02 13:24:15 86
cce-start
#!/usr/bin/kshif [ `echo $0 | grep -c "/"` -gt 0 ];then cd ${0%/*} fiVCSHOME="${VCS_HOME:-/opt/VRTSvcs}". $VCSHOME/bin/ag_i18n_inc.sh#check whether config.def file existif [...
2009-12-02 13:22:54 157
cce
#!/usr/bin/kshif [ `echo $0 | grep -c "/"` -gt 0 ];then cd ${0%/*} fi#check whether config.def file existif [ ! -f "config.def" ]then writeLog "ERROR" "monitor" "the config.de...
2009-12-02 13:20:44 128
loginit
################################################################################# name : log_file_init# describe: initialize log file, and process log file backup.# input : null# output ...
2009-12-02 13:19:29 314
writelog
#!/usr/bin/ksh#runtime user name of CCEngineRUN_USER=ccengine#The max seconds of business container started successfullyEXPIRED_TIME=180#ha log file path of CCEngineHA_LOG_FILE=/opt/...
2009-12-02 13:18:16 201
trace
function add_task_Service_For_MDMC{ echo "Please input operating number("Enter" for none): " read number echo "Please input operating type("Enter" for none): " read type echo "Plea...
2009-12-02 13:13:21 114
shell尝试-tomcat
#!/usr/bin/ksh ################################################################################ #The script is called by java. #The script just can output 0 or 1, please don't echo other informa...
2009-12-02 12:54:28 83
log4j
log4j.rootCategory=info,stdout,A2log4j.appender.stdout=org.apache.log4j.ConsoleAppenderlog4j.appender.stdout.threshold=infolog4j.appender.stdout.layout=org.apache.log4j.PatternLayoutlog4j.ap...
2009-12-01 17:58:25 117
jxl.properties
##最迟上班时间am=8:45#下班时间pm=17:45#最早加班离班时间extra_eve=20:15#xls文件中时间格式:12小时制"yyyy-MM-dd a hh:mm:ss" 或 24小时制"yyyy-MM-dd a hh:mm:ss"src_format=yyyy-MM-dd a hh:mm:ss#xls文件第一天开始时间beginStatist...
2009-12-01 17:34:48 62
Const&Initial
public final class Const{ private static final String _am = "am"; private static final String _pm = "pm"; private static final String _eve = "extra_eve"; private static final String _srcForm...
2009-12-01 17:33:48 63
CmdMain
public class CmdMain{ public static void main(String[] args) throws Exception { Xcopy xcopy = new Xcopy(new File("D:\\workspace\\ws4\\jxl")); if(xcopy.find("java") || xcopy.find("properti...
2009-12-01 17:33:11 81
extremprocess1
public class ExtremProcess{ /**如果每个表单需要标题行,则为1,否则为0*/ private final int headline = 1; private Logger log = Logger.getLogger(ExtremProcess.class); /** * * @param dir 文件所在目录 * @pa...
2009-12-01 17:31:06 73
simple1
public class SimpleProcess{ private LinkedHashMap<Integer,ArrayList<Date>> exception = new LinkedHashMap<Integer, ArrayList<Date>>(); private LinkedHashMap<Integer,Arr...
2009-12-01 17:23:57 72
main
/**while(true)*/ log.info("请输入您的选项:\n\t" + "1.执行单个文件;\n\t" + "2.执行目录中的多个文件.\n" + "enter:"); input = scanner.nextLine().trim(); if("exit".equals(input.toLowerCase())...
2009-12-01 17:14:40 84
Xcopy
public class Xcopy{ private File dir; private Logger log = Logger.getLogger(Xcopy.class); protected ArrayList<File> fileList = new ArrayList<File>(); /** * * @param dir...
2009-12-01 17:11:21 109
Timestatic
public class Timestatic{ private Date d1; private Date d2; private long late_time_all; private long early_time_all; private long extra_weekday_all; private long extra_weekend_all; priv...
2009-12-01 17:10:15 103
Paras
public class Paras{ private Paras(){}// private static Logger log = Logger.getLogger(Paras.class); public static String[] toParas(String paras) { if(paras == null) { return null...
2009-12-01 17:08:07 210
jcombox中tooltip的新使用
MyComboBox setUI() { setUI(new BasicComboBoxUI() { @Override protected ComboPopup createPopup() { ComboPopup pop = new BasicComboPopup(comboBox) { ...
2009-11-30 17:09:25 214
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人