From 4b537133c1d17e6c41fe1ef8d1ac80cdd7cd6afc Mon Sep 17 00:00:00 2001 From: kkazuya Date: Thu, 10 Sep 2026 16:09:48 +0900 Subject: [PATCH] =?UTF-8?q?[edit]=20pom.xml,=20application.properties?= =?UTF-8?q?=E3=82=92=E7=B7=A8=E9=9B=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 1 + src/main/resources/application.properties | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 24be8c6..48a93e1 100644 --- a/pom.xml +++ b/pom.xml @@ -17,6 +17,7 @@ Demo project for Spring Boot 17 + 1.18.34 diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 88b15aa..5fb191f 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,3 +1,16 @@ -spring.datasource.url=jdbc:mysql://localhost:3306/rezodb +spring.datasource.url=jdbc:mysql://localhost:3306/rezospring spring.datasource.username=rezouser spring.datasource.password=Rezo_0000 + +# SQLをログ出力 +logging.level.org.hibernate.SQL=debug + +# SQLのバインドパラメーターをログ出力 +logging.level.org.hibernate.type=trace +logging.level.org.hibernate.orm.jdbc.bind=trace + +# SELECT文の結果をログ出力 +logging.level.org.hibernate.orm.jdbc.extract=trace + +# SQL整形 +spring.jpa.properties.hibernate.format_sql=true \ No newline at end of file