Nacos配置Demo

 

 

 

server:
  port: 7082
spring:
  redis:
    open: true
  security:
    oauth2:
      resourceserver:
        jwt:
          jwk-set-uri: http://localhost:7082/oauth2/jwks
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    hikari:
      auto-commit: true
      connection-timeout: 30000
      idle-timeout: 180000
      max-lifetime: 1800000
      minimum-idle: 5
      maximum-pool-size: 20
      pool-name: UserCenterHikariCP
    username: root
    password: soterea2024
    type: com.zaxxer.hikari.HikariDataSource
    url: jdbc:mysql://10.101.251.30:3307/test_user_center?useSSL=false&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull
mybatis-plus:
  global-config:
    db-config:
      table-prefix: hax_
feign:
  sentinel:
    enabled: true
logging:
  level:
    com.soterea.hax.user.center.mapper: debug
springdoc:
  api-docs:
    #是否开启文档功能,默认为true,可不配置
    enabled: true
redis:
  open: true
  password: hax2024
  timeout: 6000 
  mode: 1
  host: 10.101.251.198
  port: 6379
  database: 15
  pool:  
    min-idle: 5
    max-idle: 10
    max-active: 1000
    max-wait: -1
login:
  user_token:
    # 登录用户token过期时间(秒)
    expire_time: 2592000
sms:
  template: aliyun
  aliyun:
    enable: true
    signName: 慧安行
    accessKeyId: LTAI5tMRiyKPxYyhbehRiVWv
    accessKeySecret: W3xO4RzaVXVd34ureh1hOfUJaMpZdL
    # aliyun 地址  
    endpoint: cn-hangzhou
    # 模板code
    templateCode: SMS_465401431
  other:
    enable: false
qixin:
  enable: true
  host: https://api.qixin.com
  app_key: 929ab64c-2aae-4cdc-a8ef-e768210087a8
  secret_key: bf4be589-10c7-4a38-9538-eed2d4eb10c9
  adv_search_api: /APIService/v2/search/advSearch
auth:
  # token有效时长 毫秒(默认一天)
  tokenValidDuration: 86400000
  # jwt 秘钥(自用用户登录使用,第三方用户使用的是非对称加密程序启动会生成)
  secret: mdm@2024
  # jwt验证忽略的接口路径
  ignorePaths:
    - /auth/login
    - /auth/logout
rocketmq:
  name-server: 10.101.251.31:9876
  producer:
    group: user-center-producer

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值