build(deps): 统一管理 datasource-decorator 依赖版本并优化配置
- 在父 pom.xml 中统一管理 datasource-decorator.version 为 2.0.0 - 添加 xbatis 依赖管理,移除子模块中的重复配置 - 为 JPA 模块添加 p6spy 依赖,配置 SQL 日志格式
This commit is contained in:
21
pom.xml
21
pom.xml
@@ -27,6 +27,7 @@
|
|||||||
<querydsl.version>7.1</querydsl.version>
|
<querydsl.version>7.1</querydsl.version>
|
||||||
<mapstruct.version>1.6.3</mapstruct.version>
|
<mapstruct.version>1.6.3</mapstruct.version>
|
||||||
<mapstruct-plus.version>1.5.0</mapstruct-plus.version>
|
<mapstruct-plus.version>1.5.0</mapstruct-plus.version>
|
||||||
|
<datasource-decorator.version>2.0.0</datasource-decorator.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@@ -89,11 +90,31 @@
|
|||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.gavlyukovskiy</groupId>
|
||||||
|
<artifactId>p6spy-spring-boot-starter</artifactId>
|
||||||
|
<version>${datasource-decorator.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.gavlyukovskiy</groupId>
|
||||||
|
<artifactId>datasource-proxy-spring-boot-starter</artifactId>
|
||||||
|
<version>${datasource-decorator.version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jspecify</groupId>
|
<groupId>org.jspecify</groupId>
|
||||||
<artifactId>jspecify</artifactId>
|
<artifactId>jspecify</artifactId>
|
||||||
<version>1.0.0</version>
|
<version>1.0.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- xbatis -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>cn.xbatis</groupId>
|
||||||
|
<artifactId>xbatis-spring-boot-parent</artifactId>
|
||||||
|
<version>1.9.6-spring-boot4</version>
|
||||||
|
<type>pom</type>
|
||||||
|
<scope>import</scope>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
|
|
||||||
|
|||||||
@@ -46,6 +46,11 @@
|
|||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.gavlyukovskiy</groupId>
|
||||||
|
<artifactId>p6spy-spring-boot-starter</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jspecify</groupId>
|
<groupId>org.jspecify</groupId>
|
||||||
<artifactId>jspecify</artifactId>
|
<artifactId>jspecify</artifactId>
|
||||||
|
|||||||
@@ -9,7 +9,15 @@ spring:
|
|||||||
password: test
|
password: test
|
||||||
driver-class-name: org.h2.Driver
|
driver-class-name: org.h2.Driver
|
||||||
jpa:
|
jpa:
|
||||||
show-sql: true
|
|
||||||
generate-ddl: true
|
generate-ddl: true
|
||||||
fenix:
|
fenix:
|
||||||
print-banner: false
|
print-banner: false
|
||||||
|
decorator:
|
||||||
|
datasource:
|
||||||
|
p6spy:
|
||||||
|
multiline: false
|
||||||
|
exclude-categories:
|
||||||
|
- commit
|
||||||
|
- result
|
||||||
|
- resultset
|
||||||
|
log-format: "%(category)|%(executionTime)|%(sqlSingleLine)"
|
||||||
|
|||||||
@@ -26,10 +26,10 @@
|
|||||||
<groupId>cn.xbatis</groupId>
|
<groupId>cn.xbatis</groupId>
|
||||||
<artifactId>xbatis-spring-boot-starter</artifactId>
|
<artifactId>xbatis-spring-boot-starter</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.gavlyukovskiy</groupId>
|
<groupId>com.github.gavlyukovskiy</groupId>
|
||||||
<artifactId>p6spy-spring-boot-starter</artifactId>
|
<artifactId>p6spy-spring-boot-starter</artifactId>
|
||||||
<version>2.0.0</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -50,18 +50,6 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<dependencyManagement>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>cn.xbatis</groupId>
|
|
||||||
<artifactId>xbatis-spring-boot-parent</artifactId>
|
|
||||||
<version>1.9.6-spring-boot4</version>
|
|
||||||
<type>pom</type>
|
|
||||||
<scope>import</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</dependencyManagement>
|
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|||||||
Reference in New Issue
Block a user