原创 css3 中dispaly:none 動畫處理

大體思路,將動畫過程添加在當前狀態與display爲none之間,在display爲none之前,保存一個狀態爲視覺爲空。監聽css3的transitionend 在,動畫完成後爲元素添加 display 爲none: 上代碼 使用

原创 Hibernate 聯合/複合主鍵註解方法

聯合主鍵用Hibernate註解映射方式主要有三種: 第一、將聯合主鍵的字段單獨放在一個類中,該類需要實現java.io.Serializable接口並重寫equals和hascode,再將該類註解爲@Embeddable,最後在主類中

原创 Spring Cloud Security Oauth2

主要過濾器 ClientCredentialsTokenEndpointFilter 作用 首先進行過濾 public void doFilter(ServletRequest req, ServletResponse res, Filt

原创 多線程併發概念

幾個重要的概念 同步(synchronous)和異步(asynchronous) 併發(Concurrency)和並行(Parallelism) 臨界區 阻塞(Blocking)和非阻塞(Non-Blocking) 鎖(Deadlock

原创 Spring boot JPA Spring Security

代碼鏈接 參考: http://blog.csdn.net/u012367513/article/details/38866465 https://segmentfault.com/a/1190000012260914#article

原创 mysql 安裝筆記

下載 到官網去下載選擇合適的版本 https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.22-winx64.zip 安裝 解壓 創建data文件夾 // 可忽略 創建my.ini配置

原创 反射得到類的內部信息

just remark User u=(User) rc.session().getAttribute("USER"); Field[] fields=u.getClass().getDeclared

原创 javascript this的使用

/** 作爲對象方法調用 在 JavaScript 中,函數也是對象,因此函數可以作爲一個對象的屬性, 此時該函數被稱爲該對象的方法,在使用這種調用方式時,this 被自然綁定到該對象。*/ var g = 10; var s

原创 記一次 當面試官的經歷,順便求個簡歷

js 說明 什麼是函數式 純函數(pure functions)/函數的純粹性(function purity) 知道如何避免副作用(side-effects) 簡單函數的組合 函數式編程語言:Lisp,ML,Haskell,

原创 js 判斷 null undefined

判斷 undefined typeof(variable) == "undefined" 判斷undefined variable===null variable==undefined&&typeof(variable) == "obj