프로필 경로 설정
This commit is contained in:
parent
b2e86d5350
commit
22afbcb093
@ -42,6 +42,9 @@ public class WebMvcConfig implements WebMvcConfigurer {
|
|||||||
@Value("${filePath.boardfile}")
|
@Value("${filePath.boardfile}")
|
||||||
private String boardFilePath;
|
private String boardFilePath;
|
||||||
|
|
||||||
|
@Value("${filePath.profile}")
|
||||||
|
private String uploadPath;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addInterceptors(InterceptorRegistry registry) {
|
public void addInterceptors(InterceptorRegistry registry) {
|
||||||
// 여기서 인터셉터를 추가할 수 있음
|
// 여기서 인터셉터를 추가할 수 있음
|
||||||
@ -58,6 +61,9 @@ public class WebMvcConfig implements WebMvcConfigurer {
|
|||||||
//게시판 에디터 안 이미지 업로드 경로
|
//게시판 에디터 안 이미지 업로드 경로
|
||||||
registry.addResourceHandler("/upload/img/board/**")
|
registry.addResourceHandler("/upload/img/board/**")
|
||||||
.addResourceLocations("file:" + boardFilePath);
|
.addResourceLocations("file:" + boardFilePath);
|
||||||
|
//프로필 이미지 업로드 경로
|
||||||
|
registry.addResourceHandler("/upload/img/profile/**")
|
||||||
|
.addResourceLocations("file:" + uploadPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Controller의 파라미터를 처리할 Resolver 등록
|
// Controller의 파라미터를 처리할 Resolver 등록
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user