首页  :: 新随笔  :: 管理

2011年8月12日

摘要: 修改cas Server端:/WebRoot/WEB-INF/spring-configuration/ticketGrantingTicketCookieGenerator.xml 文件:<beanid="ticketGrantingTicketCookieGenerator"class="org.jasig.cas.web.support.CookieRetrievingCookieGenerator"p:cookieSecure="true"//默认为true,使用https,如果只需要http,修改为false即可p:c 阅读全文

posted @ 2011-08-12 18:13 季枫 阅读(2693) 评论(2) 推荐(0)

摘要: importjava.io.*;importjava.util.zip.*;publicclassraintime{publicstaticvoidmain(String[]args){try{BufferedReaderin=newBufferedReader(newInputStreamReader(newFileInputStream(args[0]),"ISO8859_1"));FileOutputStreamf=newFileOutputStream(args[0]+".zip");CheckedOutputStreamch=newChecke 阅读全文

posted @ 2011-08-12 02:34 季枫 阅读(303) 评论(0) 推荐(0)

摘要: importjava.io.*;publicclassFileTest{privateStringBuffersb;privatestaticdoublesizes;privatevoidrecurseFile(Stringpath){if(path.indexOf(".")==-1){for(Filefile:newFile(path).listFiles()){if(file.isFile()){sizes+=file.length();}else{recurseFile(file.toString());}}elsesizes=file.length();}}publ 阅读全文

posted @ 2011-08-12 02:33 季枫 阅读(733) 评论(0) 推荐(0)

摘要: packagecn.net.comsys.ut.util;importjava.io.File;importjava.io.FileInputStream;importjava.io.IOException;importjava.io.InputStream;importjava.nio.ByteBuffer;importjava.nio.channels.FileChannel;importjava.security.MessageDigest;importjava.security.NoSuchAlgorithmException;publicclassMD5Util{/***123456 阅读全文

posted @ 2011-08-12 02:31 季枫 阅读(4767) 评论(0) 推荐(0)

智读 | 成都会领科技有限公司官网 | 智读App下载 | 每天听本书的博客 | |