xiexiang 1 ano atrás
pai
commit
28f83bab0b

+ 1 - 1
src/main/resources/application-dev.yml

@@ -36,7 +36,7 @@ spring:
         quartz:
           scheduler:
             instanceName: DefaultQuartzScheduler
-            instanceId: AUTO
+            instanceId: AUT O
           jobStore:
             class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
             driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate

+ 65 - 16
src/main/resources/application.yml

@@ -2,14 +2,18 @@ server:
   servlet:
     context-path: /
   port: 8809
+
 sa-token:
   activity-timeout: 18000
   token-name: token
   token-style: tik
-  #  是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
   is-concurrent: true
   timeout: 604800
+
 spring:
+#  profiles:
+#    active: dev
+
   thymeleaf:
     cache: false
     mode: HTML5
@@ -22,26 +26,71 @@ spring:
     multipart:
       max-file-size: 1000MB
       max-request-size: 1000MB
-  profiles:
-    active: dev
   jackson:
     default-property-inclusion: non_null
     serialization:
       INDENT_OUTPUT: true
     date-format: yyyy-MM-dd HH:mm:ss
     time-zone: Asia/Shanghai
-#mybatis
-mybatis-plus:
-  typeAliasesPackage: com.example.mos.domain
-  global-config:
-    db-config:
-      id-type: AUTO
-      logic-delete-value: 0
-      logic-not-delete-value: 1
-  configuration:
-    #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
-    map-underscore-to-camel-case: true
-    cache-enabled: false
-  mapper-locations: classpath:mapper/*.xml
 
+  rabbitmq:
+    host: 192.168.2.24
+    port: 5672
+    username: admin
+    password: 123456
+
+  data:
+    redis:
+      host: 192.168.2.24
+      port: 6379
+      database: 3
+      password: Xx0GWxdWQJxx6Swe
+      lettuce:
+        pool:
+          max-active: 20
+          max-idle: 20
+          min-idle: 0
+          max-wait: -1ms
+      timeout: 2000ms
+
+  datasource:
+    url: jdbc:mysql://192.168.2.24:3306/mos?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=GMT%2B8
+    username: root
+    password: rrzTwWAYX8Gxh5JH
+    driver-class-name: com.mysql.cj.jdbc.Driver
+    type: com.alibaba.druid.pool.DruidDataSource
+    druid:
+      stat-view-servlet:
+        login-username: admin
+        login-password: Cslg2022+
+      web-stat-filter:
+        exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"
 
+  quartz:
+    properties:
+      org:
+        quartz:
+          scheduler:
+            instanceName: DefaultQuartzScheduler
+            instanceId: AUTO
+          jobStore:
+            class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
+            driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
+            tablePrefix: QRTZ_
+            isClustered: false
+            clusterCheckinInterval: 10000
+            useProperties: false
+          threadPool:
+            class: org.quartz.simpl.SimpleThreadPool
+            threadCount: 10
+            threadPriority: 5
+            threadsInheritContextClassLoaderOfInitializingThread: true
+          dataSource:
+            default:
+              URL: jdbc:mysql://192.168.2.24:3306/mos?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=GMT%2B8
+              user: root
+              password: rrzTwWAYX8Gxh5JH
+              driver: com.mysql.jdbc.Driver
+    job-store-type: jdbc
+    jdbc:
+      initialize-schema: never