yookue / p6spy-spring-boot-starter

P6spy for spring boot starter

Home Page:https://mvnrepository.com/artifact/com.yookue.springstarter/p6spy-spring-boot-starter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

P6spy Spring Boot Starter

Spring Boot application integrates p6spy print SQL logs quickly.

Quickstart

  • Import dependencies
    <dependency>
        <groupId>com.yookue.springstarter</groupId>
        <artifactId>p6spy-spring-boot-starter</artifactId>
        <version>LATEST</version>
    </dependency>

By default, this starter will auto take effect, you can turn it off by spring.p6spy.enabled = false

  • Configure Spring Boot application.yml with prefix spring.p6spy
spring:
    datasource:
        url: 'jdbc:p6spy:mysql://xxx'
        driver-class-name: com.p6spy.engine.spy.P6SpyDriver
    p6spy:
        appender: com.p6spy.engine.spy.appender.Slf4JLogger
        log-message-format: com.yookue.springstarter.p6spy.strategy.CompactSingleLineFormat
        reload-properties: false

Document

Requirement

  • jdk 17+

License

This project is under the Apache License 2.0

See the NOTICE.txt file for required notices and attributions.

Donation

You like this package? Then donate to Yookue to support the development.

Website

About

P6spy for spring boot starter

https://mvnrepository.com/artifact/com.yookue.springstarter/p6spy-spring-boot-starter

License:Apache License 2.0


Languages

Language:Java 100.0%