application.yml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. spring:
  2. profiles:
  3. active: report-server-dev
  4. datasource:
  5. driver-class-name: com.mysql.jdbc.Driver
  6. # url: jdbc:mysql://101.37.175.111:3306/crowd-test-service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8
  7. # username: mooctest
  8. # password: secr3t!
  9. # Keep the connection alive if idle for a long time (needed in production)
  10. testWhileIdle: true
  11. validationQuery: SELECT 1
  12. # Show or not log for each sql query
  13. jpa:
  14. show-sql: true
  15. # Hibernate ddl auto (create, create-drop, update)
  16. hibernate:
  17. ddl-auto: validate
  18. #hbm2ddl.auto: update
  19. # Naming strategy
  20. naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy
  21. # The SQL dialect makes Hibernate generate better SQL for the chosen database
  22. properties.hibernate.dialect: org.hibernate.dialect.MySQL5Dialect
  23. sleep: 0
  24. # 配置输出日志
  25. logging:
  26. level:
  27. org.springframework.cloud.gateway: TRACE
  28. org.springframework.http.server.reactive: DEBUG
  29. org.springframework.web.reactive: DEBUG
  30. reactor.ipc.netty: DEBUG
  31. #开启端点
  32. management:
  33. endpoints:
  34. web:
  35. exposure:
  36. include: '*'
  37. security:
  38. enabled: false
  39. ---
  40. # 报告服务开发环境
  41. spring:
  42. profiles: report-server-dev
  43. datasource:
  44. url: jdbc:mysql://106.14.81.62:3306/report_service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8
  45. username: root
  46. password: 123456
  47. order.autoReport.upload.path: /Users/guochao/Desktop/project/enterprise-mooctest-site/var/www/reportFile/
  48. order.autoReport.builder.copyPath: /Users/guochao/Desktop/project/enterprise-mooctest-site/var/www/reportBuilder/
  49. order.autoReport.service.path: /Users/guochao/Desktop/project/enterprise-mooctest-site/projects/
  50. static.resource.autoReport.url: /reportFile/
  51. order.vulReport.json.upload.path: /static-scan-report/src/json/
  52. host.ip: 106.14.81.62
  53. ---
  54. # 报告服务线上环境
  55. spring:
  56. profiles: report-server-online
  57. datasource:
  58. url: jdbc:mysql://106.14.81.62:3306/report_service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8
  59. username: root
  60. password: 123456
  61. static.resource.autoReport.url: /reportFile/
  62. order.autoReport.upload.path: /var/www/reportFile/
  63. order.autoReport.service.path: /root/
  64. order.autoReport.builder.copyPath: /var/www/reportBuilder/
  65. order.vulReport.json.upload.path: /static-scan-report/src/json/
  66. host.ip: 106.14.81.62