diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties new file mode 100644 index 0000000..b50f96c --- /dev/null +++ b/src/main/resources/application.properties @@ -0,0 +1,14 @@ +spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver +spring.datasource.url=jdbc:mysql://mysql:3306/test_db?useSSL=false&serverTimezone=Asia/Seoul +spring.datasource.username=test +spring.datasource.password=test_pw + +spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect +spring.jpa.hibernate.ddl-auto=create-drop +spring.jpa.show-sql=true +spring.jpa.properties.hibernate.format_sql=true +spring.jpa.defer-datasource-initialization=true + +spring.sql.init.mode=always + +spring.profiles.include=API-KEY \ No newline at end of file diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml deleted file mode 100644 index 95d22ee..0000000 --- a/src/main/resources/application.yml +++ /dev/null @@ -1,19 +0,0 @@ -spring: - datasource: - driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://localhost:3306/ST_DASHBOARD?useSSL=false - username: ST_BE - password: root - - jpa: - properties: - hibernate: - format_sql: true - ddl-auto: create-drop - dialect: org.hibernate.dialect.MySQL55Dialect - show-sql: true - -logging: - level: - sql: info -