Skip to content

Commit 9b58d73

Browse files
committed
[feat] 환경 변수 이름 변경
application.properties에서 환경 변수 이름을 변경하면서, @value에 있던 값도 수정했습니다.
1 parent 1d6dd51 commit 9b58d73

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

docker-compose.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ services:
3232
- "8080:8080"
3333
environment:
3434
SPRING_CONFIG_LOCATION: file:/app/config/application.properties
35-
SPRING_DATASOURCE_URL: jdbc:mysql://mysql:3306/plango
36-
SPRING_DATASOURCE_USERNAME: ${MYSQL_USER}
37-
SPRING_DATASOURCE_PASSWORD: ${MYSQL_PASSWORD}
38-
SPRING_REDIS_HOST: redis
39-
SPRING_REDIS_PORT: 6379
4035
depends_on:
4136
- mysql
4237
- redis

src/main/java/com/example/plango/auth/jwt/service/JwtManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class JwtManager {
2323

2424
private final int ACCESS_TOKEN_EXPIRATION_SEC=60*30; // 30분
2525
private final int REFRESH_TOKEN_EXPIRATION_SEC=60*60*24*7; // 7일
26-
@Value("${applesquare.jwt.secret}")
26+
@Value("${plango.jwt.secret}")
2727
private String jwtSecret;
2828

2929

src/main/java/com/example/plango/infra/redis/config/RedisConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
@Configuration
1414
public class RedisConfig {
1515

16-
@Value("${applesquare.redis.host}")
16+
@Value("${plango.redis.host}")
1717
private String host;
1818

19-
@Value("${applesquare.redis.port}")
19+
@Value("${plango.redis.port}")
2020
private int port;
2121

2222
@Bean

0 commit comments

Comments
 (0)