原创 iBATIS 查詢返回List
ibatis中直執行sql,返回存儲Map的List類型; 簡單的查詢統計之類的,沒有必要定義太多的pojo <!-- 測試Sql --> <select id="sqlQuery" parameterClass
原创 JSON學習筆記
現在很多開源的項目用來支持json格式的轉化http://www.json.org/java/上有詳細的介紹 我選擇了其中的一個JSON-lib作爲json格式轉化工具http://json-lib.sourceforge.net/
原创 google gson學習
Gson網址http://code.google.com/p/google-gson/ 1.簡單的處理list和map Gson gson = new Gson(); List testList = new ArrayList
原创 主機文件打開數方法(too many open files)
linux裏面修改文件打開數 用普通用戶登錄,執行ulimit -n ,查看文件打開數。 如果太小,默認值是1024,則進行如下操作: 使用root用戶修改/etc/ security /limit.conf 文件。 在文件最
原创 maven 修改使用jdk版本
方式1、修改maven全局jdk 修改 安裝目錄\maven2\conf\settings.xml <profiles> <profile> <id>jdk-
原创 linux 建立軟/硬連接
服務器硬盤使用率過高,查看發現日誌記錄的硬盤空間太少了,使用軟連接將目錄指向磁盤空間大的硬盤上 1、 使用 df -lh 查看磁盤空間使用率 2、建立軟連接 ln -s 源文件 目標文件 軟鏈接就是ln -s ** **,它只會在你
原创 JSON格式化日期方法
首先我使用的工具是json-lib 地址http://json-lib.sourceforge.net/ 也可參考我的http://lyking2001.iteye.com/admin/blogs/504020瞭解json-lib
原创 jQuery 在after或者appten的時候如果代碼中包含javascript會被重複執行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head>
原创 Ubuntu 11.10 VirtualBox虛擬機添加USB支持
Ubuntu 11.10 VirtualBox虛擬機添加USB支持 下載VirtualBox Extension Pack https://www.virtualbox.org/wiki/Downloads 安裝Virtu
原创 rest-client 測試 連接請求的客戶端工具
rest-client 測試 連接請求的客戶端工具 http://code.google.com/p/rest-client/
原创 nginx ssi
HttpSsiModule This module provides a filter which processes Server-Side Includes (SSI) in the input. The lis
原创 java.lang.OutOfMemoryError: PermGen space及其解決方法
PermGen space的全稱是Permanent Generation space,是指內存的永久保存區域OutOfMemoryError: PermGen space從表面上看就是內存益出,解決方法也一定是加大內存。說說爲什麼會內存
原创 iBATIS 查詢返回List<Map>
ibatis中直執行sql,返回存儲Map的List類型; 簡單的查詢統計之類的,沒有必要定義太多的pojo <!-- 測試Sql --> <select id="sqlQuery" parameterClass
原创 jQuery插件Masked Input Plugin實現文本框掩碼效果
插件地址: http://plugins.jquery.com/project/maskedinput 依賴: <script src="jquery.js" type="text/javascript"></script
原创 spring-security
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sc