Browse Source

修改文件前缀

Feick 5 years ago
parent
commit
faf781399e

+ 1 - 1
src/main/java/com/yaoxiang/diagnosis/config/MinioProperties.java

@@ -6,7 +6,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
 public class MinioProperties {
 
     public static final String DEFAULT_BUCKET = "bucket";
-    private String prefix = "/file/download/";
+    private String prefix = "/rest/diagnosis/file/download/";
 
     private String url;
     private String[] buckets = {};

+ 2 - 2
src/main/resources/application.properties

@@ -1,6 +1,6 @@
 spring.profiles.active=dev
 logging.level.* = info
-logging.file=log/log.log
+logging.file.name=log/log.log
 
 spring.servlet.multipart.enabled=true
 spring.servlet.multipart.max-file-size=50MB
@@ -10,7 +10,7 @@ server.servlet.session.timeout=36000
 spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
 spring.jpa.show-sql=true
 spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL57Dialect
-spring.jpa.hibernate.ddl-auto=none
+spring.jpa.hibernate.ddl-auto=update
 
 spring.thymeleaf.mode=HTML
 spring.thymeleaf.prefix=classpath:/static/