原创 常用正則表達式

[正則表達式]文本框輸入內容控制   2 整數或者小數:^[0-9]+\\.{0,1}[0-9]{0,2}$   3 只能輸入數字:"^[0-9]*$"。   4 只能輸入n位的數字:"^\\d{n}$"

原创 maven私服nexus搭建

(一)nexus安裝 1. 安裝nexus 下載的私服文件nexus-2.12.0-01-bundle.zip 解壓 在命令提示符下,進入此目錄,敲入命令 nexus install 如有下列提示則證明安裝成功 如果

原创 SpringDataElasticSearch使用

運行elasticsearch-2.4.0\bin\elasticsearch.bat文件(JAVA_HOME環境變量要提前配置好) 切換到elasticsearch 的運行命令目錄,如:D:\elasticsearch-2.4.0\b

原创 Spring整合ehcache

配置文件 導入maven座標 <!-- ehcache緩存 --> <dependency> <groupId>net.sf.ehcache</groupId> <artifactId>ehcache-core</arti

原创 ztree使用

導入ztree類庫 <!-- 導入ztree類庫 --> <link rel="stylesheet" href="./js/ztree/zTreeStyle.css" type="text/css" />

原创 基於angular實現分頁工具條展示

思路: 1)客戶端發送給服務器兩個參數:當前頁碼、每頁記錄數 2)服務器端根據當前頁碼和每頁記錄條數查詢結果返回:總記錄數、當前頁數據 3)客戶端將返回當前頁數據顯示到表格中,根據返回總記錄數和每頁記錄條數,計算總頁數,根據總頁數和

原创 poi實現excel的解析

導入maven座標 <!-- Excel解析工具類 --> <dependency> <groupId>org.apache.poi</groupId> <

原创 SSH集成shiro實現登陸

Shiro執行流程:應用程序—>Subject—>SecurityManager—>Realm—>安全數據 導入maven座標 <!-- 權限控制 框架 --> <dependency>

原创 freemark使用

實現步驟: 1、創建Configuration,生成模板實例 Configuration configuration = new Configuration(); configuration.setDirectoryForTem

原创 linux命令

lrzsz下載地址:http://freecode.com/projects/lrzsz/ 上傳到linux服務器中 1.wget url網絡下載 2.netstat -tunpl | grep 6379

原创 區域批量導入ocupload一鍵上傳使用

1.導入jquery.ocupload-1.1.2.js到項目中 2.在頁面引入ocupload.js <!-- 導入jquery核心類庫 --> <script type="text/javascript" src="