zxl
2025-09-01 c7e5cb1bcbb1eba3d66cf90d9fd524abf4c9c902
config/application.yml
@@ -29,9 +29,10 @@
    type: redis
  # Redis
  redis:
    host: 127.0.0.1
    host: 42.193.1.25
    port: 6379
#    password: lilishop
    password: ycl2018
    database: 12
    lettuce:
      pool:
        # 连接池最大连接数(使用负值表示没有限制) 默认 8
@@ -60,9 +61,11 @@
      default-datasource:
        type: com.alibaba.druid.pool.DruidDataSource
        driverClassName: com.mysql.cj.jdbc.Driver
        url: jdbc:mysql://127.0.0.1:3306/lilishop?useUnicode=true&characterEncoding=utf-8&useSSL=false&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
        url: jdbc:mysql://42.193.1.25:3306/lilishop?useUnicode=true&characterEncoding=utf-8&useSSL=false&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
#        url: jdbc:mysql://127.0.0.1:3306/lilishop?useUnicode=true&characterEncoding=utf-8&useSSL=false&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
        username: root
        password: 123456
        password: 321$YcYl@1970!
#        password: 123456
        maxActive: 50
        initialSize: 20
        maxWait: 60000
@@ -169,12 +172,20 @@
# Mybatis-plus
mybatis-plus:
  mapper-locations: classpath*:mapper/*.xml
  mapper-locations: classpath*:mapper/**/*.xml
  configuration:
    #缓存开启
    cache-enabled: true
    #日志
#    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  global-config:
    db-config:
      #逻辑删除配置字段
      logic-delete-field: deleteFlag
      #逻辑删除配置字段 1 删除
      logic-delete-value: 1
      #逻辑删除配置字段 0 不删除
      logic-not-delete-value: 0
# 日志
logging:
@@ -204,7 +215,7 @@
    #图形验证码有效时间 秒 包含滑块验证码有效时间, 以及验证通过之后,缓存中存储的验证结果有效时间
    effectiveTime: 300
    #水印
    watermark: LILI-SHOP
    watermark: 绿满筐
    #干扰项数量 最大2 默认0
    interfereNum: 1
    #允许误差像素
@@ -242,7 +253,7 @@
  # jwt 细节设定
  jwt-setting:
    # token过期时间(分钟)
    tokenExpireTime: 30
    tokenExpireTime: 360
  # 使用Spring @Cacheable注解失效时间
  cache:
@@ -271,6 +282,10 @@
    rocketmq:
      promotion-topic: shop_lili_promotion_topic
      promotion-group: shop_lili_promotion_group
      comment-topic: lmk_comment_topic  # 评论
      comment-group: lmk_comment_group
      video-topic: lmk_video_topic  # 视频
      video-group: lmk_video_group
      msg-ext-topic: shop_lili_msg_topic
      msg-ext-group: shop_lili_msg_group
      goods-topic: shop_lili_goods_topic
@@ -297,11 +312,45 @@
xxl:
  job:
    admin:
      addresses: http://127.0.0.1:30001/xxl-job-admin
      addresses: http://127.0.0.1:9001/xxl-job-admin
    executor:
      appname: xxl-job-executor-lilishop
      address:
      ip:
      port: 8891
      port: 8848
      logpath: ./xxl-job/executor
      logretentiondays: 7
# 腾讯cos-sts配置
cos:
  secretId: AKID6zd07yZtwjFVVGkxvc2C5h26uTmpc9QQ  # 腾讯ARM用户的secretId
  secretKey: lFTcV6RVIo43lCMFsEKAk36tRjlVzC8n  # 腾讯ARM用户的secretKey
  durationSeconds: 1800  # STS临时访问凭证有效期,单位秒,默认1800s,主账号最长2小时,子账号(ARM用户)36小时
  bucket: lmk-1356772813
  region: ap-chengdu
  endpoint: https://lmk-1356772813.cos.ap-chengdu.myqcloud.com  # 访问域名
  urlExpireMinute: 360  # 预签名url有效时间(分钟)
  actions:  # sts的权限
    - cos:GetBucketACL
    - cos:GetObject
    - cos:GetObjectACL
    - cos:GetObjectTagging
    - cos:HeadObject
    - cos:ListMultipartUploads
    - cos:ListParts
    - cos:AbortMultipartUpload
    - cos:AppendObject
    - cos:CompleteMultipartUpload
    - cos:DeleteMultipleObjects
    - cos:DeleteObject
    - cos:InitiateMultipartUpload
    - cos:PostObject
    - cos:PutObject
    - cos:PutObjectACL
    - cos:PutObjectCopy
    - cos:PutObjectTagging
    - cos:RenameObject
    - cos:UploadPart
    - cos:UploadPartCopy
  resources: # 能操作哪些资源
    - qcs::cos::uid/1356772813:lmk-1356772813/*