application.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. server:
  2. port: 8080
  3. servlet:
  4. context-path: /
  5. spring:
  6. application:
  7. name: position-service
  8. profiles:
  9. active: ${SPRING_PROFILES_ACTIVE:local}
  10. datasource:
  11. driver-class-name: oracle.jdbc.OracleDriver
  12. type: com.alibaba.druid.pool.DruidDataSource
  13. druid:
  14. initial-size: 5
  15. min-idle: 5
  16. max-active: 20
  17. max-wait: 60000
  18. time-between-eviction-runs-millis: 60000
  19. min-evictable-idle-time-millis: 300000
  20. validation-query: SELECT 1 FROM DUAL
  21. test-while-idle: true
  22. test-on-borrow: false
  23. test-on-return: false
  24. pool-prepared-statements: true
  25. max-pool-prepared-statement-per-connection-size: 20
  26. filter:
  27. stat:
  28. enabled: true
  29. log-slow-sql: true
  30. slow-sql-millis: 1000
  31. wall:
  32. enabled: true
  33. mybatis-plus:
  34. mapper-locations: classpath*:mapper/**/*.xml
  35. configuration:
  36. map-underscore-to-camel-case: true
  37. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  38. global-config:
  39. db-config:
  40. logic-delete-field: deleted
  41. logic-delete-value: 1
  42. logic-not-delete-value: 0
  43. sa-token:
  44. token-name: Authorization
  45. timeout: 2592000
  46. active-timeout: -1
  47. is-concurrent: true
  48. is-share: false
  49. token-style: uuid
  50. is-log: false
  51. springdoc:
  52. api-docs:
  53. path: /v3/api-docs
  54. swagger-ui:
  55. path: /swagger-ui.html
  56. tags-sorter: alpha
  57. operations-sorter: alpha
  58. packages-to-scan: com.example.position.controller
  59. management:
  60. endpoints:
  61. web:
  62. exposure:
  63. include: health,info,prometheus,metrics
  64. endpoint:
  65. health:
  66. show-details: always
  67. metrics:
  68. tags:
  69. application: ${spring.application.name}