# p6spy-spring-boot-starter **Repository Path**: olcoderxie/p6spy-spring-boot-starter ## Basic Information - **Project Name**: p6spy-spring-boot-starter - **Description**: 快速集成p6spy的spring boot starter - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: https://github.com/klboke/p6spy-spring-boot-starter - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 5 - **Created**: 2021-12-25 - **Last Updated**: 2021-12-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # p6spy-spring-boot-starter Spring boot application integrates p6spy print logs quickly ## Quick start - 一、Import dependencies ``` com.github.klboke p6spy-spring-boot-starter 1.0 ``` - 二、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 - "Spring-configuration-metadata.json" has been added to the configuration description, and IDEA has good configuration tips - More configurations are available:https://p6spy.readthedocs.io/en/latest/configandusage.html