You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-1
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,8 @@ public JdbcEventListener myListener() {
102
102
This done by adding `RuntimeListenerSupportFactory` into P6Spy `modulelist`, overriding this property will cause to not registering factory thus listeners will not be applied
103
103
104
104
You can configure small set of parameters in your `application.properties`:
105
+
> [!NOTE]
106
+
> Configuration below indicates al possible parameters together with their default values and **does not** need to be set explicitly
105
107
```properties
106
108
# Register P6LogFactory to log JDBC events
107
109
decorator.datasource.p6spy.enable-logging=true
@@ -180,6 +182,8 @@ public ConnectionIdManagerProvider connectionIdManagerProvider() {
180
182
}
181
183
```
182
184
You can configure logging, query/slow query listeners and more using your `application.properties`:
185
+
> [!NOTE]
186
+
> Configuration below indicates al possible parameters together with their default values and **does not** need to be set explicitly
183
187
```properties
184
188
# One of logging libraries (slf4j, jul, common, sysout)
# Formats the SQL for better readability. Uses Hibernate's formatter if present on the class path. If you opted in for a different JPA provider you need to add https://github.com/vertical-blank/sql-formatter as a runtime dependency to your app to enable this.
@@ -234,6 +238,8 @@ All beans of type `ConnectionAcquiringStrategyFactory` are used to provide `Conn
234
238
`EventListener<? extends Event>` beans can be registered to subscribe on events of flexy-pool (e.g. `ConnectionAcquireTimeThresholdExceededEvent`, `ConnectionLeaseTimeThresholdExceededEvent`).
235
239
236
240
You can configure your `FlexyPoolDataSource` by using bean `FlexyPoolConfigurationBuilderCustomizer` or properties:
241
+
> [!NOTE]
242
+
> Configuration below indicates al possible parameters together with their default values and **does not** need to be set explicitly
237
243
```properties
238
244
# Increments pool size if connection acquire request has timed out
Copy file name to clipboardExpand all lines: datasource-decorator-spring-boot-autoconfigure/src/main/java/com/github/gavlyukovskiy/boot/jdbc/decorator/dsproxy/ProxyDataSourceBuilderConfigurer.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -132,7 +132,7 @@ public void configure(ProxyDataSourceBuilder proxyDataSourceBuilder, DataSourceP
log.warn("formatSql requested but cannot be enabled because no formatter is present (neither Hibernate nor SqlFormatter).");
135
+
thrownewIllegalStateException("'datasource-proxy.format-sql' was set to 'true', but cannot be enabled because no formatter is present in the classpath (neither 'org.hibernate:hibernate-core' nor 'com.github.vertical-blank:sql-formatter').");
0 commit comments