| | |
| | | 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.ClassUtils; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | |
| | | @Override |
| | | public Map<String, Object> add(MultipartFile[] files, Supervision supervision) { |
| | | |
| | | |
| | | ApplicationHome applicationHome = new ApplicationHome(getClass()); |
| | | String path = applicationHome.getSource().getParentFile().getPath()+"/static/img/"; |
| | | String path = ClassUtils.getDefaultClassLoader().getResource("").getPath() + "static/img/"; |
| | | |
| | | Map<String, Object> result = new HashMap<>(); |
| | | |