原创 爲什麼要少用Iframe?
iframes 提供了一個簡單的方式把一個網站的內容嵌入到另一個網站中。但我們需要慎重的使用iframe。iframe的創建比其它
原创 命令行如何查看端口被佔用,並且終止進程。
1、Netstat -ano|findstr "8081" 查看端口被佔 2、tasklist|findstr "11832" 查看被哪個程序佔用(11832第一步中找出來的) 3、TASKKILL /F /IM nginx.exe /
原创 js日期處理:LongToDate(long型轉換成日期格式)
現在日期在數據庫中一般以Number類型保存(保存long值),而前臺顯示則需要做轉換,方法如下: //擴展Date的format方法 Date.prototype.format = function (format) {
原创 獲取oracle數據庫當前用戶下所有表名和表名的註釋
select a.TABLE_NAME,b.COMMENTS from user_tables a,user_tab_comments b WHERE a.TABLE_NAME=b.TABLE_NAME order by TABLE
原创 spring的stopWatch用法,監控耗時。
stopWatch.start("操作開始1"); /* 此處寫業務邏輯代碼 */ stopWatch.stop(); stopWatch.start("操作開始2"); /* 此處寫業務邏輯代碼 */ stopWatch.stop(
原创 從MyEclipse到IntelliJ IDEA ——讓你脫鍵盤,全鍵盤操作
從MyEclipse到IntelliJ IDEA ——讓你脫鍵盤,全鍵盤操作 從MyEclipse轉戰到IntelliJ IDEA的經歷 我一個朋友寫了一篇“從Eclipse到Android Studio”博文,於是心潮澎湃
原创 安裝IntelliJ IDEA
安裝註冊IntelliJ IDEA和安裝SVN:http://pan.baidu.com/s/1jGCUI6E,祕鑰:96aw IntelliJ IDEA免費註冊碼網址: http://blog.csdn.net/henren555/ar
原创 修改myeclipse下maven項目的文件編譯輸出路徑
第一種方法 (配置Java Build Path中的Source): 第二種方法(直接修改eclipse中 .classpath文件): 點贊 收藏 分享 文章舉報 南來北
原创 去掉xml中每對標籤之外的換行符、空格、tab鍵
public static String trimStr(String xml){ StringBuffer sb= new StringBuffer(); for(String s:xml.split("\n")){ s
原创 MybatisPlus源碼 Wrapper的坑,導致全表被刪除。
實際項目碰到的: a) 故障現像: i. 抽取數據過程中,發現不定時數據表全表被誤刪除 b) 處理過程: i.
原创 Collections.sort 升序,Collections.reverse 反轉(並不是降序)。
package com.kysy.test; import java.util.ArrayList; import java.util.Collections; import java.util.List; public class
原创 集合去重
List<String> pickDtlNoList = new ArrayList<String>(); Set<String> pickDtlNoSet = new HashSet<String>(); // 去重複 pickDtl
原创 日誌工具類
public final class LogUtil { public static Logger get() { StackTraceElement[] sts = Thread.currentThread().getStac
原创 (轉)BinaryOperator接口的用法示例
轉自:https://www.tpyyes.com/a/java/2017/1015/285.html java Function函數中的BinaryOperator<T>接口用於執行lambda表達式並返回一個T類型的返回值,下面的Bi
原创 Java8 stream groupingBy 多字段分組
public class Test { public static void main(String[] args) { List<Student> students = new ArrayList<Studen