1.1.8 snapshot

This commit is contained in:
trang
2018-02-20 14:22:57 +08:00
parent 2d2f41c9bf
commit 22837ab6d4
12 changed files with 52 additions and 12 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ Druid Spring Boot Starter 将帮助你在 Spring Boot 中使用 Druid。
<dependency>
<groupId>com.github.drtrang</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.1.7</version>
<version>1.1.8-SNAPSHOT</version>
</dependency>
```
@@ -7,7 +7,7 @@
<parent>
<groupId>com.github.drtrang</groupId>
<artifactId>druid-spring-boot-actuator</artifactId>
<version>1.1.7</version>
<version>1.1.8-SNAPSHOT</version>
</parent>
<artifactId>druid-spring-boot-actuator-autoconfigure</artifactId>
@@ -7,7 +7,7 @@
<parent>
<groupId>com.github.drtrang</groupId>
<artifactId>druid-spring-boot-actuator</artifactId>
<version>1.1.7</version>
<version>1.1.8-SNAPSHOT</version>
</parent>
<artifactId>druid-spring-boot-actuator-starter</artifactId>
+1 -1
View File
@@ -7,7 +7,7 @@
<parent>
<groupId>com.github.drtrang</groupId>
<artifactId>druid-spring-boot-parent</artifactId>
<version>1.1.7</version>
<version>1.1.8-SNAPSHOT</version>
</parent>
<artifactId>druid-spring-boot-actuator</artifactId>
@@ -7,7 +7,7 @@
<parent>
<groupId>com.github.drtrang</groupId>
<artifactId>druid-spring-boot-example</artifactId>
<version>1.1.7</version>
<version>1.1.8-SNAPSHOT</version>
</parent>
<artifactId>druid-spring-boot-jpa-example</artifactId>
@@ -7,7 +7,7 @@
<parent>
<groupId>com.github.drtrang</groupId>
<artifactId>druid-spring-boot-example</artifactId>
<version>1.1.7</version>
<version>1.1.8-SNAPSHOT</version>
</parent>
<artifactId>druid-spring-boot-mybatis-example</artifactId>
@@ -0,0 +1,40 @@
package com.github.trang.druid.example.mybatis.test.coveralls;
import com.alibaba.druid.filter.config.ConfigTools;
import com.alibaba.druid.sql.SQLUtils;
import com.alibaba.druid.sql.SQLUtils.FormatOption;
import com.alibaba.druid.sql.visitor.VisitorFeature;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* DruidTest
*
* @author trang
*/
@Slf4j
public class DruidTest {
@Test
public void encrypt() throws Exception {
String origin = "123456";
String encrypt = ConfigTools.encrypt(origin);
String decrypt = ConfigTools.decrypt(ConfigTools.DEFAULT_PUBLIC_KEY_STRING, encrypt);
assertEquals(origin, decrypt);
}
@Test
public void format() {
String sql = "SELECT id,task_id,task_source, housedel_code, del_type, office_address, company_code, brand, " +
"class1_code, class2_code, class2_name, status, create_time, end_time, creator_ucid, creator_name, " +
"org_code, prove_id, prove_time, audit_ucid, audit_name, audit_reject_reason, audit_content, " +
"audit_time, pass_mode, sms_content, sms_time, lianjia_app_content, lianjia_app_time \r\n FROM " +
"sh_true_house_task \r\n WHERE office_address = 0 AND status = 0 ORDER BY id DESC";
System.out.println(sql);
System.out.println(SQLUtils.formatMySql(sql));
System.out.println(SQLUtils.formatMySql(sql, new FormatOption(VisitorFeature.OutputUCase)));
}
}
+1 -1
View File
@@ -7,7 +7,7 @@
<parent>
<groupId>com.github.drtrang</groupId>
<artifactId>druid-spring-boot-parent</artifactId>
<version>1.1.7</version>
<version>1.1.8-SNAPSHOT</version>
</parent>
<artifactId>druid-spring-boot-example</artifactId>
@@ -7,7 +7,7 @@
<parent>
<groupId>com.github.drtrang</groupId>
<artifactId>druid-spring-boot</artifactId>
<version>1.1.7</version>
<version>1.1.8-SNAPSHOT</version>
</parent>
<artifactId>druid-spring-boot-autoconfigure</artifactId>
@@ -7,7 +7,7 @@
<parent>
<groupId>com.github.drtrang</groupId>
<artifactId>druid-spring-boot</artifactId>
<version>1.1.7</version>
<version>1.1.8-SNAPSHOT</version>
</parent>
<artifactId>druid-spring-boot-starter</artifactId>
+1 -1
View File
@@ -7,7 +7,7 @@
<parent>
<groupId>com.github.drtrang</groupId>
<artifactId>druid-spring-boot-parent</artifactId>
<version>1.1.7</version>
<version>1.1.8-SNAPSHOT</version>
</parent>
<artifactId>druid-spring-boot</artifactId>
+2 -2
View File
@@ -10,7 +10,7 @@
</parent>
<artifactId>druid-spring-boot-parent</artifactId>
<version>1.1.7</version>
<version>1.1.8-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Druid Spring Boot Starter</name>
@@ -55,7 +55,7 @@
</modules>
<properties>
<druid.version>1.1.7</druid.version>
<druid.version>1.1.8</druid.version>
</properties>
<dependencyManagement>