1.0.3-SNAPSHOT

This commit is contained in:
trang
2017-07-19 14:51:12 +08:00
parent 56dfac3d84
commit 1845b92a47
6 changed files with 20 additions and 13 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
<parent>
<groupId>com.github.drtrang</groupId>
<artifactId>druid-spring-boot</artifactId>
<version>1.0.2</version>
<version>1.0.3-SNAPSHOT</version>
</parent>
<artifactId>druid-spring-boot-autoconfigure</artifactId>
+9 -5
View File
@@ -7,7 +7,7 @@
<parent>
<groupId>com.github.drtrang</groupId>
<artifactId>druid-spring-boot</artifactId>
<version>1.0.2</version>
<version>1.0.3-SNAPSHOT</version>
</parent>
<artifactId>druid-spring-boot-samples</artifactId>
@@ -68,14 +68,18 @@
<groupId>com.github.drtrang</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
</dependency>
</dependencies>
<build>
@@ -10,8 +10,8 @@ logging:
spring:
profiles:
# 默认环境为 single,多数据源示例改为 dynamic
active: single
# 默认环境为 default,多数据源示例改为 dynamic
active: default
datasource:
driver-class-name: org.h2.Driver
url: jdbc:h2:file:./samples
@@ -70,6 +70,11 @@ spring:
aop:
auto: true
proxy-target-class: true
http:
encoding:
force: true
converters:
preferred-json-mapper: gson
mybatis:
type-aliases-package: com.github.trang.druid.model
@@ -79,7 +84,7 @@ mybatis:
debug: false
spring:
profiles: single
profiles: default
---
@@ -3,7 +3,6 @@ package com.github.trang.druid.test;
import com.alibaba.druid.pool.DruidDataSource;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ActiveProfiles;
import static org.junit.Assert.assertEquals;
@@ -12,7 +11,6 @@ import static org.junit.Assert.assertEquals;
*
* @author trang
*/
@ActiveProfiles("single")
public class SingleDataSourceTests extends BaseTest {
@Autowired
+1 -1
View File
@@ -7,7 +7,7 @@
<parent>
<groupId>com.github.drtrang</groupId>
<artifactId>druid-spring-boot</artifactId>
<version>1.0.2</version>
<version>1.0.3-SNAPSHOT</version>
</parent>
<artifactId>druid-spring-boot-starter</artifactId>
+1 -1
View File
@@ -5,7 +5,7 @@
<groupId>com.github.drtrang</groupId>
<artifactId>druid-spring-boot</artifactId>
<version>1.0.2</version>
<version>1.0.3-SNAPSHOT</version>
<packaging>pom</packaging>
<name>${project.artifactId}</name>