原创 manage the code for clear

1,.properties file is a very dangerous file,because some programer's program ability is  not very good, they are easy t

原创 io 一不小心 關閉不住的偶

try { for (String file : files) { String result=backupPath + File.separator + file; Files.createPare

原创 dom4j 的小小測試

@Test public void gogo() throws IOException{ InputStream in = this.getClass().getClassLoader() .getResourceAsStr

原创 window bat 常用 命令

類linux kill -9 進程號   taskkill /pid 進程號 /f

原创 java web 中遇到的問題

1.數據已經從數據庫中取出來了,但是前臺el卻不能取到,(是否有此字段的get方法) 2.struts2 中表單提交不上去(類型是否匹配,struts2 攔截器會把不匹配的攔截掉啊) 3.struts2 中用debug標籤會出現 調用方法

原创 some ideas for the common issue

1,properties 文件怎麼用,是不是可以轉化成inmuttable globle bean 比較好呢

原创 mvn 批量上傳jar到私服 工具 python實現 (並且生成 dependencies 文件)

給公司搭建mvn 私服時遇到 jar包太多的問題果斷編寫 工具,批量一鍵上傳到私服並且生成 dependencies 文件from xml.etre

原创 java-談談工作中遇到的問題

時間過得很快,轉眼之間,工作已經一年多了,這一年了看到了好多,也想了好多。 想想自己經歷的公司,發現公司真的很有意思。不知道爲什麼,感覺公司裏的代碼怎麼好多都讓人想發火呢,不禁讓我感覺到,中國好多it公司真的不是靠技術喫飯的。 我是做

原创 java web struts2 mybatis 分頁

page.java類 import java.util.List; public class Page { /** 當前頁 */ private int curPage; /** 總頁數 */ private int t

原创 refectoring - improve the exiting code

indirection and refectoring   1,enable sharing of logic 2,to explain intention and implemetation separately 3,to isola

原创 resultSet2Bean

public List<T> resultSet2Bean(ResultSet rs,Class<T> cls){ List<T> lists = new ArrayList<T>(); T bean = null; try

原创 get提交遇到

提交的兩種方式,GET和POST  1.記住超鏈接是GET方式提交  2.POST方式提交可以統一轉碼(這樣獲得的參數可以統一轉碼)  例:request.setCharacterEncoding("UTF-8"); //如果你用的編碼方

原创 lucene series 1 document 文檔 索引創建

此圖爲lucene 獲取數據建立索引  Understanding the indexing process lucene 建立索引步驟 1,Extracting text and creating the document   提取數

原创 @Nullable 應用 避免 NullPointerExceptions

避免  NullPointerExceptions  public Person(String firstName, String lastName, @Nullable Phone phone) { this.firstNa

原创 every day learn,the knowlege I do not know very well

1,MIME   multipuipose Internet Mail Extensions                 type / subt