New file |
| | |
| | | server: |
| | | port: 9094 |
| | | 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: 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_154950909" |
| | | 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://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: 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: 123456 |
| | | 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: "" |