You are not authorized to view this page!!
12 | 13 | 14 | -------------------------------------------------------------------------------- /springboot-upload-download-file-database/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /springboot-upload-download-file-database/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-upload-download-file-database/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot-upload-download-file-database/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /springboot-upload-download-file-database/src/main/java/net/alanbinu/springboot/fileuploaddownload/SpringbootUploadDownloadFileApplication.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot.fileuploaddownload; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringbootUploadDownloadFileApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SpringbootUploadDownloadFileApplication.class, args); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /springboot-upload-download-file-database/src/main/java/net/alanbinu/springboot/fileuploaddownload/exception/FileStorageException.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot.fileuploaddownload.exception; 2 | 3 | public class FileStorageException extends RuntimeException { 4 | 5 | private static final long serialVersionUID = 1L; 6 | 7 | public FileStorageException(String message) { 8 | super(message); 9 | } 10 | 11 | public FileStorageException(String message, Throwable cause) { 12 | super(message, cause); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /springboot-upload-download-file-database/src/main/java/net/alanbinu/springboot/fileuploaddownload/repository/DatabaseFileRepository.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot.fileuploaddownload.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.stereotype.Repository; 5 | 6 | import net.alanbinu.springboot.fileuploaddownload.model.DatabaseFile; 7 | 8 | @Repository 9 | public interface DatabaseFileRepository extends JpaRepository