Логирование SQL в Hibernate.md
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ccf5bd6bc4
commit
859ac4644e
46
dev/java/hibernate/Логирование SQL в Hibernate.md
Normal file
46
dev/java/hibernate/Логирование SQL в Hibernate.md
Normal file
@ -0,0 +1,46 @@
|
||||
---
|
||||
aliases:
|
||||
tags:
|
||||
- maturity/🌱
|
||||
date: "[[2023-11-09]]"
|
||||
zero-link:
|
||||
- "[[../../../meta/zero/00 Hibernate|00 Hibernate]]"
|
||||
- "[[../../../meta/zero/00 Снипеты для Java|00 Снипеты для Java]]"
|
||||
parents:
|
||||
linked:
|
||||
---
|
||||
Чтобы каждый раз не искать эти проперти оставлю их тут.
|
||||
## SpringBoot
|
||||
```yml
|
||||
spring:
|
||||
jpa:
|
||||
show-sql: true
|
||||
properties:
|
||||
hibernate:
|
||||
format_sql: true
|
||||
```
|
||||
|
||||
![](../../../meta/files/images/Pasted%20image%2020231109104008.png)
|
||||
|
||||
Если требуется добавить вывод аргументов, то добавляем еще
|
||||
|
||||
```yaml
|
||||
logging:
|
||||
level:
|
||||
org:
|
||||
hibernate:
|
||||
type: trace
|
||||
```
|
||||
|
||||
![](../../../meta/files/images/Pasted%20image%2020231109104112.png)
|
||||
## Quarkus
|
||||
```yml
|
||||
quarkus:
|
||||
hibernate-orm:
|
||||
log:
|
||||
sql: true
|
||||
format-sql: true
|
||||
bind-parameters: true
|
||||
```
|
||||
|
||||
![](../../../meta/files/images/Pasted%20image%2020231109104248.png)
|
BIN
meta/files/images/Pasted image 20231109104008.png
Normal file
BIN
meta/files/images/Pasted image 20231109104008.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 62 KiB |
BIN
meta/files/images/Pasted image 20231109104112.png
Normal file
BIN
meta/files/images/Pasted image 20231109104112.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 143 KiB |
BIN
meta/files/images/Pasted image 20231109104248.png
Normal file
BIN
meta/files/images/Pasted image 20231109104248.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 54 KiB |
9
meta/zero/00 Hibernate.md
Normal file
9
meta/zero/00 Hibernate.md
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
parents:
|
||||
- "[[00 Java разработка]]"
|
||||
tags:
|
||||
- type/zero-link
|
||||
title: Hibernate
|
||||
---
|
||||
- [Дублирование значений при использовании @ElementCollection и @OneToMany](../../../../_inbox/Дублирование%20значений%20при%20использовании%20@ElementCollection%20и%20@OneToMany.md)
|
||||
- [Логирование SQL в Hibernate](../../dev/java/hibernate/Логирование%20SQL%20в%20Hibernate.md)
|
@ -12,4 +12,5 @@ aliases:
|
||||
- [Игнорирование ошибок сертификата OkHttp3](../../dev/snippet/Игнорирование%20ошибок%20сертификата%20OkHttp3.md)
|
||||
- [Mock конфигурация Oauth2 для SpringBoot](../../dev/snippet/Mock%20конфигурация%20Oauth2%20для%20SpringBoot.md)
|
||||
- [Несколько подключений к базе H2](../../dev/snippet/Несколько%20подключений%20к%20базе%20H2.md)
|
||||
- [Дебаг приложения на этапе компиляции IntelliJ IDEA](../../dev/snippet/Дебаг%20приложения%20на%20этапе%20компиляции%20IntelliJ%20IDEA.md)
|
||||
- [Дебаг приложения на этапе компиляции IntelliJ IDEA](../../dev/snippet/Дебаг%20приложения%20на%20этапе%20компиляции%20IntelliJ%20IDEA.md)
|
||||
- [Логирование SQL в Hibernate](../../dev/java/hibernate/Логирование%20SQL%20в%20Hibernate.md)
|
Loading…
Reference in New Issue
Block a user