From fc7912a8b29edfa05588b4785f39783817b93c85 Mon Sep 17 00:00:00 2001 From: 101 Date: Thu, 25 Jan 2024 20:39:06 +0900 Subject: [PATCH] =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/example/daemawiki/domain/mail/service/MailSend.java | 2 +- .../java/com/example/daemawiki/global/config/RedisConfig.java | 2 +- .../java/com/example/daemawiki/global/security/Tokenizer.java | 2 +- src/main/resources/application.yml | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/example/daemawiki/domain/mail/service/MailSend.java b/src/main/java/com/example/daemawiki/domain/mail/service/MailSend.java index 4e0a387d..daba4bb3 100644 --- a/src/main/java/com/example/daemawiki/domain/mail/service/MailSend.java +++ b/src/main/java/com/example/daemawiki/domain/mail/service/MailSend.java @@ -28,7 +28,7 @@ public MailSend(AuthCodeRepository authCodeRepository, JavaMailSender javaMailSe } @Value("${admin.mail}") - private static String admin; + private String admin; private static final Random rand = new Random(); diff --git a/src/main/java/com/example/daemawiki/global/config/RedisConfig.java b/src/main/java/com/example/daemawiki/global/config/RedisConfig.java index 13b0d4a2..d76e99fb 100644 --- a/src/main/java/com/example/daemawiki/global/config/RedisConfig.java +++ b/src/main/java/com/example/daemawiki/global/config/RedisConfig.java @@ -15,7 +15,7 @@ public class RedisConfig { @Primary @Bean - ReactiveRedisOperations redisOperations(ReactiveRedisConnectionFactory factory) { + public ReactiveRedisOperations redisOperations(ReactiveRedisConnectionFactory factory) { RedisSerializer serializer = new StringRedisSerializer(); RedisSerializationContext serializationContext = RedisSerializationContext .newSerializationContext() diff --git a/src/main/java/com/example/daemawiki/global/security/Tokenizer.java b/src/main/java/com/example/daemawiki/global/security/Tokenizer.java index a075713f..8441b715 100644 --- a/src/main/java/com/example/daemawiki/global/security/Tokenizer.java +++ b/src/main/java/com/example/daemawiki/global/security/Tokenizer.java @@ -19,7 +19,7 @@ public class Tokenizer { @Value("${jwt.secret}") - private static String SECRET; + private String SECRET; public String createToken(String user) { return tokenize(user, "access"); diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 41f5dc47..a7c93cee 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -14,6 +14,7 @@ spring: max-file-size: 10MB max-request-size: 10MB enabled: true + mail: smtp: auth: true