|  |  | 
 |  |  | import com.moral.util.FileUtils; | 
 |  |  |  | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.boot.system.ApplicationHome; | 
 |  |  | import org.springframework.stereotype.Service; | 
 |  |  | import org.springframework.util.ObjectUtils; | 
 |  |  | import org.springframework.web.multipart.MultipartFile; | 
 |  |  | 
 |  |  |     @Override | 
 |  |  |     public Map<String, Object> add(MultipartFile[] files, Supervision supervision) { | 
 |  |  |  | 
 |  |  |         String path = this.getClass().getClassLoader() | 
 |  |  |                 .getResource("").getFile() + "static/img/"; | 
 |  |  |         System.out.println("image path=>" + path); | 
 |  |  |  | 
 |  |  |         ApplicationHome applicationHome = new ApplicationHome(getClass()); | 
 |  |  |         String path = applicationHome.getSource().getParentFile().getPath()+"/static/img/"; | 
 |  |  |  | 
 |  |  |         Map<String, Object> result = new HashMap<>(); | 
 |  |  |  |