.yml提交

Change-Id: Ia8a96bd55cfce31fed65f7e801f8cefcdba5c67e
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
new file mode 100644
index 0000000..faca091
--- /dev/null
+++ b/src/main/resources/application.yml
@@ -0,0 +1,125 @@
+redis:
+  host: localhost
+  port: 6379
+  database: 3
+spring:
+  web:
+    resources:
+      static-locations: file:uploads/
+  profiles:
+    active: test,caching,db
+  jpa:
+    properties:
+      hibernate:
+        ddl-auto: update
+        generate-ddl: true
+        hbm2ddl:
+          auto: update
+  data:
+    redis:
+      database: ${redis.database}
+      timeout: 3000
+      port: ${redis.port}
+      host: ${redis.host}
+      jedis:
+        pool:
+          max-idle: 8
+          min-idle: 2
+          max-active: 8
+          max-wait: -1
+  quartz:
+    job-store-type: jdbc
+    wait-for-jobs-to-complete-on-shutdown: true
+    overwrite-existing-jobs: true
+    jdbc:
+      initialize-schema: always
+    properties:
+      org:
+        quartz:
+          scheduler:
+            instanceName: sapling_scheduler
+            instanceId: AUTO
+          jobStore:
+            class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
+            driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
+            tablePrefix: QRTZ_
+            useProperties: false
+            clusterCheckinInterval: 10000
+            isClustered: true
+          threadPool:
+            class: org.quartz.simpl.SimpleThreadPool
+            threadCount: 10
+            threadPriority: 5
+            threadsInheritContextClassLoaderOfInitializingThread: true
+  servlet:
+    multipart:
+      enabled: true
+      max-request-size: 20MB
+      max-file-size: 20MB
+server:
+  port: 8081
+  servlet:
+    context-path: /api
+sa-token:
+  token-name: sapling-token
+  timeout: 2592000
+  activity-timeout: -1
+  is-concurrent: true
+  is-share: false
+  token-style: random-128
+#spring:
+#  profiles:
+#    active: test,db  # 移除 caching 配置
+#
+#  jpa:
+#    properties:
+#      hibernate:
+#        ddl-auto: update
+#        hbm2ddl.auto: update
+#        cache:
+#          use_second_level_cache: false
+#          use_query_cache: false
+#
+#  quartz:
+#    job-store-type: jdbc
+#    wait-for-jobs-to-complete-on-shutdown: true
+#    overwrite-existing-jobs: true
+#    jdbc:
+#      initialize-schema: always
+#    properties:
+#      org:
+#        quartz:
+#          scheduler:
+#            instanceName: sapling_scheduler
+#            instanceId: AUTO
+#          jobStore:
+#            class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
+#            driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
+#            tablePrefix: QRTZ_
+#            useProperties: false
+#            clusterCheckinInterval: 10000
+#            isClustered: true
+#          threadPool:
+#            class: org.quartz.simpl.SimpleThreadPool
+#            threadCount: 10
+#            threadPriority: 5
+#            threadsInheritContextClassLoaderOfInitializingThread: true
+#
+#  servlet:
+#    multipart:
+#      enabled: true
+#      max-request-size: 20MB
+#      max-file-size: 20MB
+#
+#server:
+#  port: 8081
+#  servlet:
+#    context-path: /api
+#
+#sa-token:
+#  token-name: sapling-token
+#  timeout: 2592000
+#  activity-timeout: -1
+#  is-concurrent: true
+#  is-share: false
+#  token-style: random-128