CONTEXT_PATH 추가
This commit is contained in:
parent
d569709466
commit
a09b2f795e
|
|
@ -42,6 +42,9 @@ public class UserProfileController {
|
|||
@Value("${server.url.img}")
|
||||
private String SERVER_URL_IMG;
|
||||
|
||||
@Value("server.servlet.context-path")
|
||||
private String CONTEXT_PATH;
|
||||
|
||||
@PutMapping("/user/{id}")
|
||||
// public HashMap<String, Object> putUserProfile(@PathVariable String id, @RequestParam String name,
|
||||
// public void putUserProfile(@PathVariable String id, @RequestParam String name,
|
||||
|
|
@ -70,7 +73,7 @@ public class UserProfileController {
|
|||
String baseFolder = SERVER_URL_IMG;
|
||||
String baseMiddleFolder = "/img";
|
||||
String saveFolder = baseFolder + baseMiddleFolder;
|
||||
String dbSavePath = "/profile" + baseMiddleFolder + "/" + uuid + fileExtName;
|
||||
String dbSavePath = CONTEXT_PATH + baseMiddleFolder + "/" + uuid + fileExtName;
|
||||
String saveFullFilePath = saveFolder + "/" + uuid + fileExtName;
|
||||
|
||||
// 입력된 내용 파일로 쓰기
|
||||
|
|
|
|||
Loading…
Reference in New Issue