原创 BeanFactory簡介以及它 和FactoryBean的區別
BeanFacotry是spring中比較原始的Factory。如XMLBeanFactory就是一種典型的BeanFactory。原始的BeanFactory無法支持spring的許多插件,如AOP功能、Web應用等。 Applicat
原创 java-多線程斷點下載
package com.zhong.utils; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java
原创 java23設計模式學習-附源碼
https://github.com/gougou1993/pattern_demo 單例(Singleton)模式:某個類只能生成一個實例,該類提供了一個全局訪問點供外部獲取該實例,其拓展是有限多例模式。 原型(Prototype)模式
原创 gitstart-ranking排名
https://gitstar-ranking.com/repositories
原创 Mysql建表超長問題
1.ERROR 1118 (42000): Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535.
原创 Spring4.3.6 + atomikos3.9.0 + mybatis3.4.6+mybatis-spring1.3.0搭建分佈式事務demo
github:https://github.com/gougou1993/spring_mybatis_atomikos_tomcat
原创 java-NumberToCNUtils數字轉換爲漢語中人民幣的大寫工具類
package com.zhong.util; import java.math.BigDecimal; /** * 數字轉換爲漢語中人民幣的大寫<br> * * @author zhong * @create 2019-
原创 springboot-整合filter的兩種方式
1.springboot通過掃描註解,@ServletComponentScan和@WebFilter實現 1.1編寫FirstFilter類實現Filter接口 package com.zhong.spring_boot_filter
原创 docker-命令
1.docker images --查看所有鏡像 2.docker pull imagename:tag --拉取鏡像 3.docker container ls -- 查看所有容器 4.docker start containerId/
原创 docker-wordpress+mysql搭建個人博客
1. 拉取mysql鏡像:docker pull mysql:5.6 2.拉取wordpress鏡像:docker pull wordpress 3. 啓動mysql容器:docker run -d --name wp-mysql -e
原创 springboot-HandlerMethodArgumentResolver解析自定義註解
1.自定義註解 package com.zhong.spring_demo.anno; import java.lang.annotation.Documented; import java.lang.annotation.Eleme
原创 springboot-filter整合
1 。編寫MyFilter類,實現Filter接口 package com.zhong.spring_demo.filter; import java.io.IOException; import javax.servlet.Fil
原创 java-list循環過程中刪除元素的三種方式對比
java-list循環過程中刪除元素的三種方式對比。 1.通過 iterator(正確做法) 2.普通for循環(java.util.ConcurrentModificationException 異常) 3.foreach循環(jav
原创 把本地項目關聯到GitHub庫
0.在github上創建倉庫 --創建遠程庫 1.git remote add origin [email protected]:用戶名/倉庫名.git --本地倉庫與GitHub遠程庫關聯 2.git push -u origin maste
原创 java-併發工具類之CyclicBarrier(循環柵欄)
package com.zhong.chaptor_lomk.concurrent; import java.util.concurrent.BrokenBarrierException; import java.util.concu