application-dev.yml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # 端口
  2. server:
  3. port: 8099
  4. spring:
  5. # 数据源配置
  6. datasource:
  7. type: com.alibaba.druid.pool.DruidDataSource
  8. url: jdbc:mysql://127.0.0.1:3306/pco_system?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=UTC
  9. username: root
  10. password: 123456
  11. # 是否打开sql监控台 (生产环境请务必关闭此选项)
  12. druid:
  13. stat-view-servlet:
  14. enabled: false
  15. web-stat-filter:
  16. enabled: false
  17. filter:
  18. config:
  19. enabled: true
  20. # redis配置
  21. redis:
  22. # Redis数据库索引(默认为0)
  23. database: 1
  24. # Redis服务器地址
  25. host: 127.0.0.1
  26. # Redis服务器连接端口
  27. port: 6379
  28. # Redis服务器连接密码(默认为空)
  29. # password:
  30. # 连接超时时间(毫秒)
  31. timeout: 5000ms
  32. lettuce:
  33. pool:
  34. # 连接池最大连接数
  35. max-active: 200
  36. # 连接池最大阻塞等待时间(使用负值表示没有限制)
  37. max-wait: -1ms
  38. # 连接池中的最大空闲连接
  39. max-idle: 10
  40. # 连接池中的最小空闲连接
  41. min-idle: 0
  42. # 项目自定义配置
  43. myconfig:
  44. # 本项目部署到的服务器域名(文件上传等等模块 要用到)
  45. domain: http://192.168.3.217:8099
  46. web-domain: https://192.168.3.53:8080
  47. part-config:
  48. base-price: 30 #基础费用
  49. extra-price: 10 #过夜额外收费
  50. night-end: 06:00:00 #夜间结束时间
  51. free-minutes: 30
  52. free-car-length: 4.2
  53. car:
  54. max-length: 20
  55. max-weight: 50
  56. wx-config:
  57. title: 场站管理系统
  58. flush-second: 12000 #token刷新时间 秒
  59. app-id: wxd40a34141872bf0c
  60. secret: 2e6a69fab1fbab60369ebd21b0882f3e
  61. mach-id: 1615645036
  62. key: dongxingkouanerqiao8888888888888
  63. token: dx1123
  64. access-token-key: wechat:base_token_key
  65. js-api-ticket-key: wechat:jsapi_ticket_key
  66. access-token-url: https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=${wx-config.app-id}&secret=${wx-config.secret}
  67. #弹出让用户确认授权的页面
  68. auth-login-url: https://open.weixin.qq.com/connect/oauth2/authorize?appid=${wx-config.app-id}&redirect_uri=REDIRECT_URI&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect
  69. js-api-token-url: https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=ACCESS_TOKEN&type=jsapi
  70. openid-url: https://api.weixin.qq.com/sns/oauth2/access_token?appid=${wx-config.app-id}&secret=${wx-config.secret}&code=CODE&grant_type=authorization_code