diff --git a/src/main/java/io/company/localhost/common/config/WebMvcConfig.java b/src/main/java/io/company/localhost/common/config/WebMvcConfig.java index 28acccc..2d8d0c5 100644 --- a/src/main/java/io/company/localhost/common/config/WebMvcConfig.java +++ b/src/main/java/io/company/localhost/common/config/WebMvcConfig.java @@ -41,6 +41,9 @@ public class WebMvcConfig implements WebMvcConfigurer { @Value("${filePath.boardfile}") private String boardFilePath; + + @Value("${filePath.profile}") + private String uploadPath; @Override public void addInterceptors(InterceptorRegistry registry) { @@ -58,6 +61,9 @@ public class WebMvcConfig implements WebMvcConfigurer { //게시판 에디터 안 이미지 업로드 경로 registry.addResourceHandler("/upload/img/board/**") .addResourceLocations("file:" + boardFilePath); + //프로필 이미지 업로드 경로 + registry.addResourceHandler("/upload/img/profile/**") + .addResourceLocations("file:" + uploadPath); } // Controller의 파라미터를 처리할 Resolver 등록