Xing Jinwen | 2b2dc8c | 2025-06-04 23:15:13 +0800 | [diff] [blame] | 1 | redis: |
| 2 | host: localhost |
| 3 | port: 6379 |
| 4 | database: 3 |
| 5 | spring: |
| 6 | web: |
| 7 | resources: |
| 8 | static-locations: file:uploads/ |
| 9 | profiles: |
| 10 | active: test,caching,db |
| 11 | jpa: |
| 12 | properties: |
| 13 | hibernate: |
| 14 | ddl-auto: update |
| 15 | generate-ddl: true |
| 16 | hbm2ddl: |
| 17 | auto: update |
| 18 | data: |
| 19 | redis: |
| 20 | database: ${redis.database} |
| 21 | timeout: 3000 |
| 22 | port: ${redis.port} |
| 23 | host: ${redis.host} |
| 24 | jedis: |
| 25 | pool: |
| 26 | max-idle: 8 |
| 27 | min-idle: 2 |
| 28 | max-active: 8 |
| 29 | max-wait: -1 |
| 30 | quartz: |
| 31 | job-store-type: jdbc |
| 32 | wait-for-jobs-to-complete-on-shutdown: true |
| 33 | overwrite-existing-jobs: true |
| 34 | jdbc: |
| 35 | initialize-schema: always |
| 36 | properties: |
| 37 | org: |
| 38 | quartz: |
| 39 | scheduler: |
| 40 | instanceName: sapling_scheduler |
| 41 | instanceId: AUTO |
| 42 | jobStore: |
| 43 | class: org.springframework.scheduling.quartz.LocalDataSourceJobStore |
| 44 | driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate |
| 45 | tablePrefix: QRTZ_ |
| 46 | useProperties: false |
| 47 | clusterCheckinInterval: 10000 |
| 48 | isClustered: true |
| 49 | threadPool: |
| 50 | class: org.quartz.simpl.SimpleThreadPool |
| 51 | threadCount: 10 |
| 52 | threadPriority: 5 |
| 53 | threadsInheritContextClassLoaderOfInitializingThread: true |
| 54 | servlet: |
| 55 | multipart: |
| 56 | enabled: true |
| 57 | max-request-size: 20MB |
| 58 | max-file-size: 20MB |
| 59 | server: |
| 60 | port: 8081 |
| 61 | servlet: |
| 62 | context-path: /api |
| 63 | sa-token: |
| 64 | token-name: sapling-token |
| 65 | timeout: 2592000 |
| 66 | activity-timeout: -1 |
| 67 | is-concurrent: true |
| 68 | is-share: false |
| 69 | token-style: random-128 |
2081595154 | 3945aab | 2025-06-05 13:48:37 +0800 | [diff] [blame^] | 70 | |
| 71 | security: |
| 72 | rsa: |
| 73 | # 指定服务器RSA公钥文件路径(支持classpath:或文件系统路径) |
| 74 | server-public-key-file: src/main/resources/keys/public_key.pem |
Xing Jinwen | 2b2dc8c | 2025-06-04 23:15:13 +0800 | [diff] [blame] | 75 | #spring: |
| 76 | # profiles: |
| 77 | # active: test,db # 移除 caching 配置 |
| 78 | # |
| 79 | # jpa: |
| 80 | # properties: |
| 81 | # hibernate: |
| 82 | # ddl-auto: update |
| 83 | # hbm2ddl.auto: update |
| 84 | # cache: |
| 85 | # use_second_level_cache: false |
| 86 | # use_query_cache: false |
| 87 | # |
| 88 | # quartz: |
| 89 | # job-store-type: jdbc |
| 90 | # wait-for-jobs-to-complete-on-shutdown: true |
| 91 | # overwrite-existing-jobs: true |
| 92 | # jdbc: |
| 93 | # initialize-schema: always |
| 94 | # properties: |
| 95 | # org: |
| 96 | # quartz: |
| 97 | # scheduler: |
| 98 | # instanceName: sapling_scheduler |
| 99 | # instanceId: AUTO |
| 100 | # jobStore: |
| 101 | # class: org.springframework.scheduling.quartz.LocalDataSourceJobStore |
| 102 | # driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate |
| 103 | # tablePrefix: QRTZ_ |
| 104 | # useProperties: false |
| 105 | # clusterCheckinInterval: 10000 |
| 106 | # isClustered: true |
| 107 | # threadPool: |
| 108 | # class: org.quartz.simpl.SimpleThreadPool |
| 109 | # threadCount: 10 |
| 110 | # threadPriority: 5 |
| 111 | # threadsInheritContextClassLoaderOfInitializingThread: true |
| 112 | # |
| 113 | # servlet: |
| 114 | # multipart: |
| 115 | # enabled: true |
| 116 | # max-request-size: 20MB |
| 117 | # max-file-size: 20MB |
| 118 | # |
| 119 | #server: |
| 120 | # port: 8081 |
| 121 | # servlet: |
| 122 | # context-path: /api |
| 123 | # |
| 124 | #sa-token: |
| 125 | # token-name: sapling-token |
| 126 | # timeout: 2592000 |
| 127 | # activity-timeout: -1 |
| 128 | # is-concurrent: true |
| 129 | # is-share: false |
| 130 | # token-style: random-128 |