框架默认的上传文件大小改为100MB,日志生成的大小也改为100MB

This commit is contained in:
zer0Black
2023-10-22 20:39:40 +08:00
parent 0b3c57f677
commit f290bf532f
7 changed files with 12 additions and 12 deletions
File diff suppressed because one or more lines are too long
@@ -86,7 +86,7 @@ public class JeroBootExceptionHandler {
@ExceptionHandler(MaxUploadSizeExceededException.class) @ExceptionHandler(MaxUploadSizeExceededException.class)
public Results<T> handleMaxUploadSizeExceededException(MaxUploadSizeExceededException e) { public Results<T> handleMaxUploadSizeExceededException(MaxUploadSizeExceededException e) {
log.error(e.getMessage(), e); log.error(e.getMessage(), e);
return Results.error("文件大小超出10MB限制, 请压缩或降低文件质量! "); return Results.error("文件大小超出100MB限制, 请压缩或降低文件质量! ");
} }
@ExceptionHandler(DataIntegrityViolationException.class) @ExceptionHandler(DataIntegrityViolationException.class)
@@ -22,8 +22,8 @@ management:
spring: spring:
servlet: servlet:
multipart: multipart:
max-file-size: 10MB max-file-size: 100MB
max-request-size: 10MB max-request-size: 100MB
mail: mail:
host: smtp.163.com host: smtp.163.com
username: test@163.com username: test@163.com
@@ -22,8 +22,8 @@ management:
spring: spring:
servlet: servlet:
multipart: multipart:
max-file-size: 10MB max-file-size: 100MB
max-request-size: 10MB max-request-size: 100MB
mail: mail:
host: smtp.163.com host: smtp.163.com
username: test@163.com username: test@163.com
@@ -22,8 +22,8 @@ management:
spring: spring:
servlet: servlet:
multipart: multipart:
max-file-size: 10MB max-file-size: 100MB
max-request-size: 10MB max-request-size: 100MB
mail: mail:
host: smtp.163.com host: smtp.163.com
username: test@163.com username: test@163.com
@@ -26,8 +26,8 @@ management:
spring: spring:
servlet: servlet:
multipart: multipart:
max-file-size: 10MB max-file-size: 100MB
max-request-size: 10MB max-request-size: 100MB
mail: mail:
host: smtp.163.com host: smtp.163.com
username: test@163.com username: test@163.com
@@ -20,7 +20,7 @@
<FileNamePattern>${LOG_HOME}/jeroboot-%d{yyyy-MM-dd}.%i.log</FileNamePattern> <FileNamePattern>${LOG_HOME}/jeroboot-%d{yyyy-MM-dd}.%i.log</FileNamePattern>
<!--日志文件保留天数 --> <!--日志文件保留天数 -->
<MaxHistory>30</MaxHistory> <MaxHistory>30</MaxHistory>
<maxFileSize>10MB</maxFileSize> <maxFileSize>100MB</maxFileSize>
</rollingPolicy> </rollingPolicy>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符 --> <!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符 -->