application.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. server:
  2. port: 1157
  3. spring:
  4. application:
  5. name: ${HOSTNAME:@hertzbeat@}${PID}
  6. profiles:
  7. active: prod
  8. mvc:
  9. static-path-pattern: /console/**
  10. resources:
  11. static-locations:
  12. - classpath:/dist/
  13. - classpath:../dist/
  14. jackson:
  15. default-property-inclusion: NON_EMPTY
  16. sureness:
  17. auths:
  18. - digest
  19. - basic
  20. - jwt
  21. ---
  22. spring:
  23. config:
  24. activate:
  25. on-profile: prod
  26. datasource:
  27. driver-class-name: com.mysql.cj.jdbc.Driver
  28. username: root
  29. password: 123456
  30. url: jdbc:mysql://localhost:3306/hertzbeat?useUnicode=true&characterEncoding=utf-8&useSSL=false
  31. platform: mysql
  32. hikari:
  33. max-lifetime: 120000
  34. jpa:
  35. database: mysql
  36. mail:
  37. # 请注意邮件服务器地址:qq邮箱为 smtp.qq.com qq企业邮箱为 smtp.exmail.qq.com
  38. host: smtp.exmail.qq.com
  39. username: example@qq.com
  40. # 请注意此非邮箱账户密码 此需填写邮箱授权码
  41. password: example
  42. port: 465
  43. default-encoding: UTF-8
  44. properties:
  45. mail:
  46. smtp:
  47. socketFactoryClass: javax.net.ssl.SSLSocketFactory
  48. ssl:
  49. enable: true
  50. thymeleaf:
  51. prefix: classpath:/templates/
  52. check-template-location: true
  53. cache: true
  54. suffix: .html
  55. #encoding: UTF-8
  56. #content-type: text/html
  57. mode: LEGACYHTML5
  58. warehouse:
  59. store:
  60. td-engine:
  61. enabled: true
  62. driver-class-name: com.taosdata.jdbc.rs.RestfulDriver
  63. url: jdbc:TAOS-RS://localhost:6041/hertzbeat
  64. username: root
  65. password: taosdata