From 9abf038756c426c59012d00dda7bb374e0f3e200 Mon Sep 17 00:00:00 2001 From: JUN Date: Fri, 12 May 2023 23:58:19 +0900 Subject: [PATCH] =?UTF-8?q?4=EC=B0=A8=20=EC=84=B8=EB=AF=B8=EB=82=98=20?= =?UTF-8?q?=EB=B3=B4=EA=B0=95=20#10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application.yaml | 38 ++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/fourthSeminar/src/main/resources/application.yaml b/fourthSeminar/src/main/resources/application.yaml index c961207..2160224 100644 --- a/fourthSeminar/src/main/resources/application.yaml +++ b/fourthSeminar/src/main/resources/application.yaml @@ -1,3 +1,37 @@ +spring: + profiles: + active: set1 + +# set1 +--- +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://localhost:3306/sopt_32?useSSL=true&useUnicode=true&serverTimezone=Asia/Seoul + username: root + password: 1234 + + jpa: + show-sql: true + hibernate: + ddl-auto: create + properties: + hibernate: + format_sql: true + +logging: + level: + org: + hibernate: + type: + descriptor: + sql: trace +server: + port: 8080 + + +# set2 +--- spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver @@ -19,4 +53,6 @@ logging: hibernate: type: descriptor: - sql: trace \ No newline at end of file + sql: trace +server: + port: 8082 \ No newline at end of file