Newer
Older
casic-smart-kitchen / casic-web / src / main / resources / config / application-dev.yml
wangpeng on 18 Jan 2023 2 KB 年底终版
#maven项目编译后,resource目录下文件存放在项目根目录下,也就是classes目录下
server:
  port: 8083
#  https配置,使用\jdk\bin\keytool可生成证书放在项目根目录下
#  ssl:
#    key-store: sang.p12
#    key-alias: tomcathttps
#    key-store-password: 123456
###################  spring配置  ###################
spring:
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://111.198.10.15:11336/casic_smart_kitchen?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&serverTimezone=UTC&&allowMultiQueries=true
    username: root
    password: Casic203
  redis:
    host: 111.198.10.15
    port: 11412
    password: ew5T4K3#203lwh
    database: 2
    serializer: org.springframework.data.redis.serializer.StringRedisSerializer
    redisValueSerializer: org.springframework.data.redis.serializer.JdkSerializationRedisSerializer
jms:
   pub-sub-domain: true
# session:
#   store-type: redis
# redis:
#   host: 111.198.10.15
#   port: 11412
#   password: ew5T4K3#203lwh
#   serializer: org.springframework.data.redis.serializer.StringRedisSerializer
#   redisValueSerializer: org.springframework.data.redis.serializer.JdkSerializationRedisSerializer
casic:
  #kaptcha-open: false #是否开启登录时验证码 (true/false)
  no-login-urls: /**/**,${casic.sysUrl}/user/login,${casic.sysUrl}/user/appLogin,${casic.sysUrl}/kaptcha/base64,${casic.sysUrl}/config/baseConfig,/route/mockToken,/**/register,/user/sms/**,/appRecommendInfo/**,/appBannerInfo/**,/demo/**,/miniUser/**,/**/mini/**
  #flowable数据源和多数据源配置
  db:
    init:
      enable: false
  file:
    uploadPath: /tmp/
logging:
  level.root: info
  level.com.casic: debug
  level.org.springframework.web: info

#涂鸦
tuya:
  cloud:
    clientId: vx74mnykxwv7ug9kdnuc
    clientSecret: 3dae95c5db6e4fe4abd3f0fa49f4ed1a
    endpoint: https://openapi.tuyacn.com
    #CN("https://openapi.tuyacn.com", "pulsar+ssl://mqe.tuyacn.com:7285/")

#个推
securitymarker:
  getui:
    appId: eZ9p4Pr7QT7nqKvz8EwWe4
    appKey: yEgmzwWy5S6p73V4NQNRz4
    masterSecret: L0hA9tWU4g9lH22VAp6oi2
#    appId: 3raXcZQx9b99PzCosZsBW4
#    appKey: x5Hm2f5jFD8S7EtQusedK1
#    masterSecret: PSb1Z9kjwL8myXYHe6dTj7

wechart:
  miniprogram:
    code2sessionUrl: https://api.weixin.qq.com/sns/jscode2session
    accesstokenUrl: https://api.weixin.qq.com/cgi-bin/token

wxaccount:
  config:
    tokenSecret: rXCKJQdGvCULWzuiYfRiWFJGPbyksIprBUMBQgJubmQ=
    tokenSeed: 642229884370cc6d55a12c69b0b1c2fa
#    randomKeyExpired: 600
    minTokenExpired: 604800000
#    codeStartWithValidate: true
#    refreshAppIds: wx5a17a96f7616da00
#    refreshInterval: 3600000
    #刷新小程序access_token
#    refreshAccessTokenUrl: https://api.auto-pai.com/wechatwrap/api/wechatwrap/v1/refreshaccesstoken
    #获取小程序access_token
#    getAccessTokenUrl: https://api.auto-pai.com/wechatwrap/api/wechatwrap/v1/getaccesstoken
    # access_token 签名appid
#    appId: gE6Yo0ykJYCAlVC61pvB