| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- server:
- port: 8087
- spring:
- application:
- name: Login
- # config:
- # import: optional:nacos:mysql-dev?group=zk-parent&namespace=dev&refresh=true # 暂时禁用 Nacos 配置导入
- cloud:
- nacos:
- discovery:
- server-addr: 115.190.125.125:8848
- enabled: false
- namespace: dev
- group: zk-parent
- config:
- server-addr: 115.190.125.125:8848
- namespace: dev
- group: zk-parent
- prefix: mysql-dev
- file-extension: yml
- import-check:
- enabled: false
- # 数据库配置
- datasource:
- url: jdbc:mysql://115.190.125.125:3306/hunlian?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&useSSL=false&allowPublicKeyRetrieval=true
- username: root
- password: lsx@hfs?gln.lsc
- driver-class-name: com.mysql.cj.jdbc.Driver
- # HikariCP 连接池配置
- hikari:
- minimum-idle: 5 # 最小空闲连接数
- maximum-pool-size: 20 # 最大连接池大小
- connection-timeout: 30000 # 连接超时时间(毫秒)30秒
- idle-timeout: 600000 # 空闲连接超时时间(毫秒)10分钟
- max-lifetime: 1800000 # 连接最大存活时间(毫秒)30分钟
- connection-test-query: SELECT 1 # 连接测试查询
- # Redis配置
- redis:
- host: 115.190.125.125
- port: 6377
- #password:
- database: 0
- timeout: 3000ms
- lettuce:
- pool:
- max-active: 8
- max-idle: 8
- min-idle: 0
- max-wait: -1ms
- # MyBatis Plus配置
- mybatis-plus:
- configuration:
- map-underscore-to-camel-case: true
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
- global-config:
- db-config:
- logic-delete-field: isDeleted
- logic-delete-value: 1
- logic-not-delete-value: 0
- # --- WeChat 集成配置 ---
- wechat:
- mock:
- enabled: true # 暂时启用 Mock,避免未提供 secret 导致 502
- appid: wx8454588818fa7b30
- secret: ${WECHAT_SECRET:} # 出于安全,默认从环境变量注入,未提供则为空
|