Browse Source

修复上传

Mark 6 years ago
parent
commit
53359ecfe0
1 changed files with 7 additions and 6 deletions
  1. 7 6
      src/main/resources/application.yml

+ 7 - 6
src/main/resources/application.yml

@ -9,6 +9,7 @@ server:
9 9
    servlet:
10 10
      context-path: /renren-fast
11 11
12
12 13
spring:
13 14
    # 环境 dev|test|prod
14 15
    profiles:
@ -17,12 +18,11 @@ spring:
17 18
    jackson:
18 19
        time-zone: GMT+8
19 20
        date-format: yyyy-MM-dd HH:mm:ss
20
    http:
21
        multipart:
22
          servlet:
23
            max-file-size: 100MB
24
            max-request-size: 100MB
25
            enabled: true
21
    servlet:
22
      multipart:
23
        max-file-size: 100MB
24
        max-request-size: 100MB
25
        enabled: true
26 26
    redis:
27 27
        open: false  # 是否开启redis缓存  true开启   false关闭
28 28
        database: 0
@ -38,6 +38,7 @@ spring:
38 38
              min-idle: 5       # 连接池中的最小空闲连接
39 39
    mvc:
40 40
        throw-exception-if-no-handler-found: true
41
        static-path-pattern: /static/**
41 42
    resources:
42 43
        add-mappings: false
43 44