-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
阳君
committed
Nov 2, 2017
1 parent
e82ee9f
commit 85f9422
Showing
1 changed file
with
37 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,54 @@ | ||
![](https://raw.githubusercontent.com/937447974/Blog/master/Resources/2016110201.png) | ||
|
||
[![Language: Java](https://img.shields.io/badge/language-Java-orange.svg?style=flat)](https://developer.apple.com/reference/objectivec) [![Platform](https://img.shields.io/cocoapods/p/Maven.svg?style=flat)](http://cocoadocs.org/docsets/YJCocoa) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/937447974/YJCocoa/blob/master/LICENSE) [![CocoaPods](https://img.shields.io/cocoapods/v/YJCocoa.svg?style=flat)](http://cocoapods.org) ![Apps](https://img.shields.io/cocoapods/at/YJCocoa.svg?style=flat) | ||
|
||
![Language: Java](https://img.shields.io/badge/language-Java-orange.svg?style=flat) | ||
![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat) | ||
[![Maven central](https://maven-badges.herokuapp.com/maven-central/com.github.937447974/yjcocoa/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.937447974/yjcocoa) | ||
![QQ群](https://img.shields.io/badge/QQ群-557445088-blue.svg?style=flat) | ||
|
||
YJ 系列 Maven 开源库 | ||
|
||
[![Build Status](https://travis-ci.org/937447974/YJCocoaMaven.svg?branch=master)](https://travis-ci.org/937447974/YJCocoaMaven) | ||
**Maven 安装** | ||
|
||
```pom | ||
<dependency> | ||
<groupId>com.github.937447974</groupId> | ||
<artifactId>yjcocoa</artifactId> | ||
<version>17.11.1</version> | ||
</dependency> | ||
``` | ||
|
||
# 1 MyBatis | ||
|
||
mybatis 动态数据源,支持一主多从架构,包含自动事务管理。 | ||
|
||
默认连接从库,切换主库如下所示。 | ||
|
||
```java | ||
DynamicDataSourceHolder.setMaster(true, () -> { // 主库切换 | ||
System.out.println("切换到主库"); | ||
}); | ||
``` | ||
|
||
---------- | ||
|
||
# <a id="Appendix">Appendix | ||
|
||
333 | ||
## Author | ||
|
||
姓名:阳君 | ||
|
||
[![Build Status](https://travis-ci.org/mybatis/mybatis-3.svg?branch=master)](https://travis-ci.org/mybatis/mybatis-3) | ||
[![Maven central](https://maven-badges.herokuapp.com/maven-central/org.mybatis/mybatis/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.mybatis/mybatis) | ||
http://search.maven.org/#artifactdetails%7Ccom.github.937447974%7Cyjcocoa%7C17.11.1%7Cjar | ||
QQ:937447974 | ||
|
||
https://maven-badges.herokuapp.com/maven-central/com.github/yjcocoa | ||
YJ技术支持群:557445088 | ||
|
||
[![License](http://img.shields.io/:license-apache-brightgreen.svg)](http://www.apache.org/licenses/LICENSE-2.0.html) | ||
职位:滴滴 iOS 高级工程师 | ||
|
||
如果你觉得这个框架很赞,请点击右上角的Star按钮;如果你对我的框架感兴趣,并想持续获得本人最新的框架源文件,欢迎点击右上角的Fork按钮。 | ||
|
||
[![Build Status](https://travis-ci.org/937447974/YJCocoaMaven.svg?branch=master)](https://travis-ci.org/937447974/YJCocoaMaven) | ||
如果你也想来和我们一起在滴滴从事iOS研发工作,欢迎投递简历到[email protected]。 | ||
|
||
[![Dependency Status](https://www.versioneye.com/user/projects/5932123f22f278003c5f851e/badge.svg?style=flat)](https://www.versioneye.com/user/projects/5932123f22f278003c5f851e) | ||
## Copyright | ||
|
||
CSDN:http://blog.csdn.net/y550918116j | ||
|
||
![mybatis](http://mybatis.github.io/images/mybatis-logo.png) | ||
GitHub:https://github.com/937447974 |