From c08a64326fde00367c6d5c6704ad4908187acc80 Mon Sep 17 00:00:00 2001 From: seonghooni Date: Wed, 31 Jul 2024 17:43:20 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20application.yml,=20.gitignore=20?= =?UTF-8?q?=ED=8C=8C=EC=9D=BC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 - src/main/resources/application.yml | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/application.yml diff --git a/.gitignore b/.gitignore index f208e71..c2065bc 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,6 @@ build/ !gradle/wrapper/gradle-wrapper.jar !**/src/main/**/build/ !**/src/test/**/build/ -/src/main/resources/application.yml ### STS ### .apt_generated diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..d3542c0 --- /dev/null +++ b/src/main/resources/application.yml @@ -0,0 +1,21 @@ +spring: + datasource: + url: ${MYSQL_URL:jdbc:mysql://localhost}:${MYSQL_PORT:3306}/${MYSQL_SCHEMA:dev} + driver-class-name: com.mysql.cj.jdbc.Driver + username: ${MYSQL_USERNAME:root} + password: ${MYSQL_PASSWORD:1234} + jpa: + hibernate: + ddl-auto: update + show-sql: true + properties: + hibernate: + format_sql: true + use_sql_comments: true +logging: + level: + org: + hibernate: + type: + descriptor: + sql: trace \ No newline at end of file