프로필 경로 설정
This commit is contained in:
parent
b2e86d5350
commit
22afbcb093
@ -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 등록
|
||||
|
||||
Loading…
Reference in New Issue
Block a user