无关风月
2025-02-28 2f8e70ad2884d2b6b7443dfae0af11ae9cfc8b99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
server:
  port: 9092
  tomcat:
    max-swallow-size: 500MB
#  servlet:
#    context-path: /api
spring:
  thymeleaf:
    cache: false
  servlet:
    multipart:
      max-file-size: 500MB
      max-request-size: 500MB
      resolve-lazily: true #设置为懒加载,不然依然会捕获不到异常
  profiles:
    active: dev
#    active: prod
  main:
    allow-bean-definition-overriding: true
  #sagger文档属性配置
  mvc:
    static-path-pattern: /**
    pathmatch:
      matching-strategy: ant_path_matcher
  web:
    resources:
      static-locations: file:/ ,classpath:/static/
web:
  swagger:
    enabled: true
    service-url: /
    title: 后台管理系统-接口文档
    description: 请求方式(application/json; charset=utf-8)
    contact:
      email: chenkun@lingser.com
      name: 小陈
    req-fixed-parameters:
      - { paramKey: 'token', description: '登录返回的token',required: false }
# mybatis
mybatis-plus:
  # 此处在多数据源中生效
  config-location: classpath:/mybatis-config.xml
  global-config:
    banner: false
    db-config:
      logic-not-delete-value: 0
      logic-delete-value: 1
  # 指定Mapper文件位置
  mapper-locations: classpath*:mapping/*.xml
logging:
  file:
    #   path 及 name只能二选一,自定义名称选name,path的默认文件名spring.log
    #   path: /logs
    name: logs/app.log
  logback:
    rollingpolicy:
      max-history: 3
  level:
    com:
      sales:
        manage: debug
debug: true
#OSS及短信配置
oss:
  config:
    templateCodeTest: "SMS_180051431"
    signNameTest: "阿里云短信测试"
    accessKeyId: LTAI5tL1dE1DzT4ZYdDQZ8k7
    accessKeySecret: 4SZBtTyLhOoYRcfMS4SVAtGz8ZnxRP
    endpoint: oss-cn-shanghai.aliyuncs.com
    bucketName: sales-bucket
    cdn:
    signName: "眼度"
    templateCode: SMS_180051431
    shareTemplateCode: SMS_180051431
gaode:
  map:
    key: 254fcc7a516f4f8154f7bf8d6988a198 #254fcc7a516f4f8154f7bf8d6988a198 db0695fad8211da0a6c3cd42b6213342 fcdb6f6285e3774579fb7bb8000c89a2
 
file:
  uri: https://nncdn.pharmacylinked.com
 
#测试环境
---
spring:
  config:
    activate:
      on-profile: dev
  # 数据源
  datasource:
    username: root #测试环境
    password: 123456
    url: jdbc:mysql://192.168.110.34:3306/eyes?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
    type: com.zaxxer.hikari.HikariDataSource
    driver-class-name: com.mysql.cj.jdbc.Driver
    hikari:
      minimum-idle: 10
      # 连接池大小 = (核心数*2 + 有效磁盘数)
      maximum-pool-size: 5
      auto-commit: true
      idle-timeout: 30000
      pool-name: DatebookHikariCP-Applet
      max-lifetime: 1800000
      connection-timeout: 30000
      connection-test-query: SELECT 1
  redis:
    #测试环境
    host: 127.0.0.1
    port: 6379
    timeout: 5000
    database: 10
    password: 123456
download:
  path: /root/sales
alipay:
  appid: ""
  appPrivateKey: ""
  alipayPublicKey: ""
  alipay_public_key: ""
wx:
  appid: ""
  mchId: ""
  key:
callbackPath: ""
 
 
hw:
  sms:
    url: ""
    appKey: ""
    appSecret: ""
    sender: ""
    templateId: ""
    signature: ""
#正式环境
---
spring:
  config:
    activate:
      on-profile: prod
  # 数据源
  datasource:
    username: root
    password: YanDu@2025!
    url: jdbc:mysql://127.0.0.1:3306/eyes?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
    type: com.zaxxer.hikari.HikariDataSource
    driver-class-name: com.mysql.cj.jdbc.Driver
    hikari:
      minimum-idle: 10
      # 连接池大小 = (核心数*2 + 有效磁盘数)
      maximum-pool-size: 5
      auto-commit: true
      idle-timeout: 30000
      pool-name: DatebookHikariCP-Applet
      max-lifetime: 1800000
      connection-timeout: 30000
      connection-test-query: SELECT 1
  redis:
    #测试环境
    host: 127.0.0.1
    port: 6379
    timeout: 8000
    database: 1
    password: xsbf@2022
download:
  path: /root/sales
alipay:
  appid: ""
  appPrivateKey: ""
  alipayPublicKey: ""
  alipay_public_key: ""
wx:
  appid: ""
  mchId: ""
  key:
callbackPath: ""
 
hw:
  sms:
    url: ""
    appKey: ""
    appSecret: ""
    sender: ""
    templateId: ""
    signature: ""