p6spy-spring-boot-starter

快速集成p6spy的spring boot starter

Лицензия

Лицензия

Категории

Категории

Spring Boot Контейнер Микросервисы p6spy Библиотеки уровня приложения Logging
Группа

Группа

com.github.klboke
Идентификатор

Идентификатор

p6spy-spring-boot-starter
Последняя версия

Последняя версия

1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

p6spy-spring-boot-starter
快速集成p6spy的spring boot starter
Ссылка на сайт

Ссылка на сайт

https://github.com/klboke/p6spy-spring-boot-starter
Система контроля версий

Система контроля версий

https://github.com/klboke/p6spy-spring-boot-starter.git

Скачать p6spy-spring-boot-starter

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.klboke/p6spy-spring-boot-starter/ -->
<dependency>
    <groupId>com.github.klboke</groupId>
    <artifactId>p6spy-spring-boot-starter</artifactId>
    <version>1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.klboke/p6spy-spring-boot-starter/
implementation 'com.github.klboke:p6spy-spring-boot-starter:1.0'
// https://jarcasting.com/artifacts/com.github.klboke/p6spy-spring-boot-starter/
implementation ("com.github.klboke:p6spy-spring-boot-starter:1.0")
'com.github.klboke:p6spy-spring-boot-starter:jar:1.0'
<dependency org="com.github.klboke" name="p6spy-spring-boot-starter" rev="1.0">
  <artifact name="p6spy-spring-boot-starter" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.klboke', module='p6spy-spring-boot-starter', version='1.0')
)
libraryDependencies += "com.github.klboke" % "p6spy-spring-boot-starter" % "1.0"
[com.github.klboke/p6spy-spring-boot-starter "1.0"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
p6spy : p6spy jar 3.8.6
org.springframework.boot : spring-boot-autoconfigure Необязательный jar 2.2.0.RELEASE

test (3)

Идентификатор библиотеки Тип Версия
org.springframework.boot : spring-boot-starter-test jar 2.2.0.RELEASE
org.springframework.boot : spring-boot-starter-web Необязательный jar 2.2.0.RELEASE
org.springframework.boot : spring-boot-starter Необязательный jar 2.2.0.RELEASE

Модули Проекта

Данный проект не имеет модулей.

p6spy-spring-boot-starter

Spring boot application integrates p6spy print logs quickly

p6spy:https://github.com/p6spy/p6spy

Quick start

  • 一、Import dependencies
        <dependency>
            <groupId>com.github.klboke</groupId>
            <artifactId>p6spy-spring-boot-starter</artifactId>
            <version>1.0</version>
        </dependency>
  • 二、Configure the application.properties Configuration starts with "p6spy.config." compatible with p6spy's system properties configuration
spring.datasource.url = jdbc:p6spy:mysql://xxx
spring.datasource.username = xxx
spring.datasource.password = xxx
spring.datasource.driver-class-name = com.p6spy.engine.spy.P6SpyDriver

p6spy.config.appender = com.p6spy.engine.spy.appender.Slf4JLogger
p6spy.config.logMessageFormat = com.p6spy.engine.spy.appender.CustomLineFormat
p6spy.config.customLogMessageFormat = executionTime:%(executionTime)| 执行sql:%(sqlSingleLine)

By default import dependency, p6spy auto assembly will take effect, you can turn it off by "p6spy.config.enabled = false"

Configuration description

Версии библиотеки

Версия
1.0