application-locale.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. spring:
  2. datasource:
  3. driver-class-name: com.mysql.cj.jdbc.Driver
  4. url: jdbc:mysql://172.192.13.95:3306/common_data?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  5. username: root
  6. password: root
  7. redis:
  8. host: 172.192.10.105
  9. port: 30013
  10. password:
  11. jackson:
  12. time-zone: Asia/Shanghai
  13. date-format: yyyy-MM-dd HH:mm:ss
  14. mybatis:
  15. mapper-locations: classpath:mapper/*.xml
  16. type-aliases-package: com.huashe.common.domain.model,com.huashe.common.weather.model
  17. holiday:
  18. cron: 0 0 8 1 * ?
  19. url: https://unpkg.com/holiday-calendar@1.1.6/data/CN/#year#.json
  20. weather:
  21. rt-cron: 0 15 0,6,12,18 * * ?
  22. forecast-cron: 0 15 8 * * ?
  23. # 服务提供商
  24. service-provider: amap
  25. region:
  26. # 数据来源 db、conf
  27. source: db
  28. conf-adcodes:
  29. amap:
  30. url: https://restapi.amap.com/v3/weather/weatherInfo?key=${weather.amap.key}&city=#{adcode}&extensions=#{extensions}&output=JSON
  31. key: 9a5a4852c8698e783989e7f376d77816
  32. weatherList:
  33. - '1101:晴'
  34. - '1103:多云'
  35. - '1106:阴'
  36. - '2200:雪'
  37. - '2100:雨'
  38. - '4100:雾'
  39. - '4200:霾'
  40. - '4300:沙'
  41. - '4300:尘'