application-integration-test.yaml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. spring:
  2. main:
  3. lazy-initialization: true # 开启懒加载,加快速度
  4. banner-mode: off # 单元测试,禁用 Banner
  5. --- #################### 数据库相关配置 ####################
  6. spring:
  7. # 数据源配置项
  8. datasource:
  9. name: ruoyi-vue-pro
  10. url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.name}?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT
  11. driver-class-name: com.mysql.jdbc.Driver
  12. username: root
  13. password: 123456
  14. # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
  15. redis:
  16. host: 127.0.0.1 # 地址
  17. port: 6379 # 端口
  18. database: 0 # 数据库索引
  19. mybatis:
  20. lazy-initialization: true # 单元测试,设置 MyBatis Mapper 延迟加载,加速每个单元测试
  21. --- #################### 定时任务相关配置 ####################
  22. --- #################### 配置中心相关配置 ####################
  23. --- #################### 服务保障相关配置 ####################
  24. # Lock4j 配置项(单元测试,禁用 Lock4j)
  25. # Resilience4j 配置项
  26. resilience4j:
  27. ratelimiter:
  28. instances:
  29. backendA:
  30. limit-for-period: 1 # 每个周期内,允许的请求数。默认为 50
  31. limit-refresh-period: 60s # 每个周期的时长,单位:微秒。默认为 500
  32. timeout-duration: 1s # 被限流时,阻塞等待的时长,单位:微秒。默认为 5s
  33. register-health-indicator: true # 是否注册到健康监测
  34. --- #################### 监控相关配置 ####################
  35. --- #################### 芋道相关配置 ####################
  36. # 芋道配置项,设置当前项目所有自定义的配置
  37. yudao:
  38. info:
  39. version: 1.0.0
  40. base-package: cn.iocoder.dashboard
  41. web:
  42. api-prefix: /api
  43. controller-package: ${yudao.info.base-package}
  44. security:
  45. token-header: Authorization
  46. token-secret: abcdefghijklmnopqrstuvwxyz
  47. token-timeout: 1d
  48. session-timeout: 30m
  49. mock-enable: true
  50. mock-secret: test
  51. swagger:
  52. enable: false # 单元测试,禁用 Swagger
  53. captcha:
  54. timeout: 5m
  55. width: 160
  56. height: 60
  57. file:
  58. base-path: http://127.0.0.1:${server.port}/${yudao.web.api-prefix}/file/get/
  59. codegen:
  60. base-package: ${yudao.info.base-package}.modules
  61. db-schemas: ${spring.datasource.name}
  62. xss:
  63. enable: false
  64. exclude-urls: # 如下两个 url,仅仅是为了演示,去掉配置也没关系
  65. - ${spring.boot.admin.context-path}/** # 不处理 Spring Boot Admin 的请求
  66. - ${management.endpoints.web.base-path}/** # 不处理 Actuator 的请求