application-dev.yml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. # ===================================================================
  2. # Spring Boot configuration for the "dev" profile.
  3. #
  4. # This configuration overrides the application.yml file.
  5. #
  6. # More information on profiles: https://www.jhipster.tech/profiles/
  7. # More information on configuration properties: https://www.jhipster.tech/common-application-properties/
  8. # ===================================================================
  9. # ===================================================================
  10. # Standard Spring Boot properties.
  11. # Full reference is available at:
  12. # http://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
  13. # ===================================================================
  14. logging:
  15. level:
  16. ROOT: DEBUG
  17. tech.jhipster: DEBUG
  18. org.hibernate.SQL: DEBUG
  19. com.ruowei.ecsp: DEBUG
  20. spring:
  21. devtools:
  22. restart:
  23. enabled: true
  24. additional-exclude: static/**
  25. livereload:
  26. enabled: false # we use Webpack dev server + BrowserSync for livereload
  27. jackson:
  28. serialization:
  29. indent-output: true
  30. datasource:
  31. type: com.zaxxer.hikari.HikariDataSource
  32. # office main
  33. # url: jdbc:mysql://192.168.1.160:3307/cnspjava?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC&createDatabaseIfNotExist=true&allowPublicKeyRetrieval=true
  34. # username: cnsp
  35. # password: Cns@2021
  36. # local czz
  37. url: jdbc:mysql://localhost:3309/ecsp_prod?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC&createDatabaseIfNotExist=true&allowPublicKeyRetrieval=true
  38. username: root
  39. password: Aaa@123456
  40. # office test
  41. # url: jdbc:mysql://192.168.1.160:3307/cnspjava_test?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC&createDatabaseIfNotExist=true&allowPublicKeyRetrieval=true
  42. # username: cnsptest
  43. # password: Cnsptest@2021
  44. hikari:
  45. poolName: Hikari
  46. auto-commit: false
  47. data-source-properties:
  48. cachePrepStmts: true
  49. prepStmtCacheSize: 250
  50. prepStmtCacheSqlLimit: 2048
  51. useServerPrepStmts: true
  52. jpa:
  53. liquibase:
  54. contexts: dev
  55. mail:
  56. host: localhost
  57. port: 25
  58. username:
  59. password:
  60. messages:
  61. cache-duration: PT1S # 1 second, see the ISO 8601 standard
  62. thymeleaf:
  63. cache: false
  64. server:
  65. port: 8081
  66. # ===================================================================
  67. # JHipster specific properties
  68. #
  69. # Full reference is available at: https://www.jhipster.tech/common-application-properties/
  70. # ===================================================================
  71. jhipster:
  72. cache: # Cache configuration
  73. ehcache: # Ehcache configuration
  74. time-to-live-seconds: 3600 # By default objects stay 1 hour in the cache
  75. max-entries: 100 # Number of objects in each cache entry
  76. # CORS is only enabled by default with the "dev" profile
  77. cors:
  78. # Allow Ionic for JHipster by default (* no longer allowed in Spring Boot 2.4+)
  79. allowed-origins: 'http://localhost:8100,https://localhost:8100,http://localhost:9000,https://localhost:9000,http://localhost:8081,https://localhost:8081,http://localhost:4200,https://localhost:4200'
  80. # Enable CORS when running in GitHub Codespaces
  81. allowed-origin-patterns: 'https://*.githubpreview.dev'
  82. allowed-methods: '*'
  83. allowed-headers: '*'
  84. exposed-headers: 'Authorization,Link,X-Total-Count,X-${jhipster.clientApp.name}-alert,X-${jhipster.clientApp.name}-error,X-${jhipster.clientApp.name}-params'
  85. allow-credentials: true
  86. max-age: 1800
  87. security:
  88. authentication:
  89. jwt:
  90. # This token must be encoded using Base64 and be at least 256 bits long (you can type `openssl rand -base64 64` on your command line to generate a 512 bits one)
  91. base64-secret: mq9dl9UppW5cr8fiZ/yLFpUnTonEF7xxLbsrj3uKOTegmtIEy4jeHeqKxja6sxlt8HlYAzOVpe9VUF9am7zUow==
  92. # Token is valid 24 hours
  93. token-validity-in-seconds: 86400
  94. token-validity-in-seconds-for-remember-me: 2592000
  95. mail: # specific JHipster mail property, for standard properties see MailProperties
  96. base-url: http://127.0.0.1:8080
  97. logging:
  98. use-json-format: false # By default, logs are not in Json format
  99. logstash: # Forward logs to logstash over a socket, used by LoggingConfiguration
  100. enabled: false
  101. host: localhost
  102. port: 5000
  103. queue-size: 512
  104. # ===================================================================
  105. # Application specific properties
  106. # Add your own application properties here, see the ApplicationProperties class
  107. # to have type-safe configuration, like in the JHipsterProperties above
  108. #
  109. # More documentation is available at:
  110. # https://www.jhipster.tech/common-application-properties/
  111. # ===================================================================
  112. application:
  113. # reportPath: /data/projects/ecsp/report/
  114. uploadPath: /data/projects/ecsp/upload/
  115. ecspUploadPath: /data/projects/ecsp/upload/