Skip to content

Commit dad82a3

Browse files
authored
chore: application.properties 환경변수 기반 설정으로 변경
1 parent ca918f2 commit dad82a3

1 file changed

Lines changed: 32 additions & 17 deletions

File tree

Lines changed: 32 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,34 @@
11
spring.application.name=FixLog
22

3-
# DB setting
4-
spring.h2.console.enabled=true
5-
spring.h2.console.path=/h2-console
6-
7-
# DataBase Info
8-
spring.datasource.url=jdbc:h2:tcp://localhost/~/fixlog
9-
spring.datasource.driver-class-name=org.h2.Driver
10-
spring.datasource.username=sa
11-
spring.datasource.password=
12-
13-
spring.jpa.show-sql=true
14-
spring.jpa.hibernate.ddl-auto=update
15-
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.H2Dialect
16-
17-
# JWT
18-
jwt.secret=fixlogfixlogfixlogfixlogfixlog1234
19-
jwt.expiration-time=86400000
3+
//# DB setting
4+
//spring.h2.console.enabled=true
5+
''spring.h2.console.path=/h2-console
6+
7+
//# DataBase Info
8+
//spring.datasource.url=jdbc:h2:tcp://localhost/~/fixlog
9+
//spring.datasource.driver-class-name=org.h2.Driver
10+
//spring.datasource.username=sa
11+
//spring.datasource.password=
12+
13+
//spring.jpa.show-sql=true
14+
//spring.jpa.hibernate.ddl-auto=update
15+
//spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.H2Dialect
16+
17+
//# JWT
18+
//jwt.secret=fixlogfixlogfixlogfixlogfixlog1234
19+
//jwt.expiration-time=86400000
20+
21+
##### dev #####
22+
server.port=8083
23+
24+
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
25+
spring.datasource.url=${mysql_url}
26+
spring.datasource.username=${mysql_username}
27+
spring.datasource.password=${mysql_password}
28+
29+
spring.jpa.hibernate.ddl-auto=create
30+
spring.jpa.properties.hibernate.format_sql=true
31+
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
32+
33+
##### jwt #####
34+
spring.jwt.secret=${jwt_key}

0 commit comments

Comments
 (0)