mirror of
https://github.com/drtrang/druid-spring-boot.git
synced 2026-11-03 07:33:41 +00:00
1.0.3-SNAPSHOT
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
---
|
||||
|
||||
|
||||
-2
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user