From d78bb87949b14bb55a63e2aafd1006804ac9561d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=93=80=ED=9E=88?= <149302959+duehee@users.noreply.github.com> Date: Fri, 29 Nov 2024 18:14:17 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=EC=A0=95=EC=A0=81=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EA=B2=BD=EB=A1=9C=20=EC=84=A4=EC=A0=95=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98(=ED=95=99=EC=83=9D=20=EC=9D=B4=EB=A9=94=EC=9D=BC=20?= =?UTF-8?q?=EB=B9=84=EB=B0=80=EB=B2=88=ED=98=B8=20=EC=88=98=EC=A0=95)=20(#?= =?UTF-8?q?1101)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix : 정적파일처리 추가 * chore : 필요없는 주석 삭제 --- .../java/in/koreatech/koin/global/config/WebConfig.java | 7 +++++++ src/main/resources/mail/change_password_config.html | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/java/in/koreatech/koin/global/config/WebConfig.java b/src/main/java/in/koreatech/koin/global/config/WebConfig.java index d8dd8627a..1dbfdd4e5 100644 --- a/src/main/java/in/koreatech/koin/global/config/WebConfig.java +++ b/src/main/java/in/koreatech/koin/global/config/WebConfig.java @@ -7,6 +7,7 @@ import org.springframework.web.method.support.HandlerMethodArgumentResolver; import org.springframework.web.servlet.config.annotation.CorsRegistry; import org.springframework.web.servlet.config.annotation.InterceptorRegistry; +import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; import in.koreatech.koin.domain.bus.controller.BusStationEnumConverter; @@ -78,4 +79,10 @@ public void addCorsMappings(CorsRegistry registry) { .allowCredentials(true) .maxAge(3600); } + + @Override + public void addResourceHandlers(ResourceHandlerRegistry registry) { + registry.addResourceHandler("/static/**") + .addResourceLocations("classpath:/static/"); + } } diff --git a/src/main/resources/mail/change_password_config.html b/src/main/resources/mail/change_password_config.html index 62c79f7d2..3f7cc3c6f 100644 --- a/src/main/resources/mail/change_password_config.html +++ b/src/main/resources/mail/change_password_config.html @@ -58,7 +58,7 @@ - - + +