From f42c62fea31c013d4fb8ccfd711686a5624f03c7 Mon Sep 17 00:00:00 2001 From: blinkfox Date: Tue, 8 May 2018 00:21:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Ezealot=E4=B8=AD=E5=85=B3?= =?UTF-8?q?=E4=BA=8Ezealot-spring-boot-starter=E7=9A=84=E9=9B=86=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 11 +++++++++++ docs/start-use.md | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/README.md b/README.md index b8d70dc..3c58206 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,17 @@ SQL对开发人员来说是核心的资产之一,在开发中经常需要书 ``` +### 3. SpringBoot + +如果你的项目是`SpringBoot2.x`,那么可以直接引入Zealot的[Starter](https://github.com/blinkfox/zealot-spring-boot-starter),且几乎不需要做任何其他方面的配置即可使用,这里是[zealot-spring-boot-starter](https://github.com/blinkfox/zealot-spring-boot-starter)的引入及使用方式说明。 + +```xml + + com.blinkfox + zealot-spring-boot-starter + +``` + ## 四、Java链式式之ZealotKhala 在Java中书写中等长度的SQL,用`+`连接的字符串尤其是动态字符串,会导致SQL的可读性极差且拼接性能较低,在`Zealot v1.0.4`版本中提供了一个额外高效的SQL字符串链式拼接工具`Khala`(**已被弃用**),但Khala只提供拼接字符串的功能,并不具有返回动态SQL和参数的特性,便决定在`v1.1.0`版本中新增了`ZealotKhala`,`ZealotKhala`类也采用流式API的方式可以书写出更流畅的动态SQL,且会得到动态SQL的有序参数。其使用示例如下: diff --git a/docs/start-use.md b/docs/start-use.md index 2c6e71d..c2661b8 100644 --- a/docs/start-use.md +++ b/docs/start-use.md @@ -21,3 +21,14 @@ ```bash compile 'com.blinkfox:zealot:1.3.1' ``` + +### SpringBoot + +如果你的项目是SpringBoot2.x,那么可以直接引入Zealot的[Starter](https://github.com/blinkfox/zealot-spring-boot-starter),且几乎不需要做任何其他方面的配置即可使用,这里是[zealot-spring-boot-starter](https://github.com/blinkfox/zealot-spring-boot-starter)的引入及使用方式说明。 + +```xml + + com.blinkfox + zealot-spring-boot-starter + +``` \ No newline at end of file