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