file controller added

This commit is contained in:
byung eun park 2019-09-16 17:54:34 +09:00
parent b955ff9533
commit bdbc20a9de
4 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
package com.totopia.server.commons.controller; package com.totopia.server.commons.controller;
import com.totopia.server.commons.data.payload.FileUploadResponse; import com.totopia.server.commons.data.payload.FileUploadResponse;
import com.totopia.server.commons.data.service.FileUploadDownloadService; import com.totopia.server.commons.service.FileUploadDownloadService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.io.Resource; import org.springframework.core.io.Resource;

View File

@ -1,4 +1,4 @@
package com.totopia.server.commons.data.exception; package com.totopia.server.commons.exception;
public class FileDownloadException extends RuntimeException { public class FileDownloadException extends RuntimeException {
public FileDownloadException(String message) { public FileDownloadException(String message) {

View File

@ -1,4 +1,4 @@
package com.totopia.server.commons.data.exception; package com.totopia.server.commons.exception;
public class FileUploadException extends RuntimeException { public class FileUploadException extends RuntimeException {
public FileUploadException(String message) { public FileUploadException(String message) {

View File

@ -1,7 +1,7 @@
package com.totopia.server.commons.data.service; package com.totopia.server.commons.service;
import com.totopia.server.commons.data.exception.FileDownloadException; import com.totopia.server.commons.exception.FileDownloadException;
import com.totopia.server.commons.data.exception.FileUploadException; import com.totopia.server.commons.exception.FileUploadException;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.io.Resource; import org.springframework.core.io.Resource;
import org.springframework.core.io.UrlResource; import org.springframework.core.io.UrlResource;