原创 關於 Spring JdbcTemplate 的一些總結

關於 Spring JdbcTemplate 的一些總結 一個小問題的思考 起因 當前項目中一直使用的都是 SpringData JPA ,即 public interface UserRepository extends JpaRepos

原创 使用技媒體實踐編寫發佈博客

技媒體實踐博客 CSDN OSChina 知乎 簡書 思否 掘金 51CTO

原创 常見的RPC框架

dubbo Alibaba 開源給apache 的開源框架 spring cloud ... thrift 跨語言的rpc框架,facebook貢獻給apache https://thrift.apache.org/ motan: 微博

原创 ES 歷史學習筆記梳理

簡介 官網: https://www.elastic.co/ Elastic Search 1.基於Apache Lucene的開源搜索引擎 2.採用Java編寫 RESTful API風格 3.較容易的橫向擴展 應用場景 1.海量數據

原创 apache頂級項目(七) - O~Q 原

apache頂級項目(七) - O~Q https://www.apache.org/ ODE Orchestration Director Engine執行遵循WS-BPEL標準編寫的業務流程。 OFBiz Apache OFBiz是一套

原创 EhCache學習筆記 原

EhCache簡介 CacheManager是Spring定義的一個用來管理Cache的接口。 Spring自身已經爲我們提供了兩種CacheManager的實現,一種是基於Java API的ConcurrentMap,另一種是基於第三方C

原创 容器 - ConcurrentHashMap爲何不支持null鍵和null值 原

ConcurrentHashMap爲何不支持null鍵和null值 背景 最近在梳理總結《集合 - 常用Map之間區別》, 其中有一點就是 HashMap 是支持null鍵和null值,而 ConcurrentHashMap 是不支持的;

原创 Spring Bean Scope(作用域) 原

Spring version : 4.3.19.RELEASE scope the Spring Framework supports seven scopes, five of which are available only if yo

原创 多線程 - ThreadPoolExecutor 常用的拒絕策略(RejectedExecutionHandler) 原

AbortPolicy 該策略是線程池的默認策略。使用該策略時,如果線程池隊列滿了丟掉這個任務並且拋出RejectedExecutionException異常。 源碼如下: public void rejectedExecution(Ru

原创 Maven 依賴範圍(Dependency Scope) 轉

Dependency Scope Dependency scope is used to limit the transitivity of a dependency, and also to affect the classpath us

原创 Mybatis 學習筆記四 MyBatis-Plus插件 原

Mybatis 學習筆記四 MyBatis-Plus插件 maven依賴 <dependency> <groupId>com.baomidou</groupId> <artif

原创 Mybatis 學習筆記二 與spring搭配 原

Mybatis 學習筆記二 與spring搭配 maven依賴 <!--解決辦法:mybatis的3.4.0及以上版本用mybatis-spring1.3.0及以上版本; mybatis的3.4.0以

原创 推特雪花算法 java實現 原

package twiter.snowflake; /** * twitter的snowflake算法 -- java實現 */ public class SnowFlake { /** * 起始的時間戳

原创 Spring - 事務管理(二)常用的使用方式 原

《Spring - 事務管理(一)基本概念》 1. 使用TransactionTemplate手動提交事務 spring配置 <bean id="dataSource" class="org.springframework.jdbc

原创 MyBatis異常 之 Mapped Statements collection does not contain value for xxx 原

背景 執行mybatis mapper中的一個方法時報錯: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value fo