一,數(shù)據(jù)庫持久層架構(gòu)

二,數(shù)據(jù)庫組件
2.1 Druid
Druid是Java語言中最好的數(shù)據(jù)庫連接池。Druid能夠提供強大的監(jiān)控和擴(kuò)展功能。
2.2 MyBatis-Plus
MyBatis-Plus 是一個 MyBatis 的增強工具,在 MyBatis 的基礎(chǔ)上只做增強不做改變,為簡化開發(fā)、提高效率而生。
- Github地址:MyBatis-Plus
- 文檔地址:MyBatis-Plus
2.3 dynamic-datasource
dynamic-datasource-spring-boot-starter 是一個基于springboot的快速集成多數(shù)據(jù)源的啟動器。
- Github地址:dynamic-datasource
- 文檔地址:dynamic-datasource
- 示例:dynamic-datasource
2.4 ShardingSphere
Apache ShardingSphere 是一款分布式 SQL 事務(wù)和查詢引擎,可通過數(shù)據(jù)分片、彈性伸縮、加密等能力對任意數(shù)據(jù)庫進(jìn)行增強。
- Github地址:ShardingSphere
- 文檔地址:ShardingSphere
- 示例:ShardingSphere
2.5 AnyLine
AnyLine的核心是一個基于spring-jdbc生態(tài)的(No-ORM)數(shù)據(jù)庫操作工具,摒棄了各種繁瑣呆板的Service/Dao/Entity/*O/Mapper 沒有mybatis 沒有各種配置 各種O。