1. #服务器端口
    2. server:
    3. port: 8120
    4. #spring配置
    5. spring:
    6. redis:
    7. ##redis 单机环境配置
    8. host: 192.168.1.200
    9. port: 6379
    10. password:
    11. database: 0
    12. ssl: false
    13. ##redis 集群环境配置
    14. #cluster:
    15. # nodes: 127.0.0.1:7001,127.0.0.1:7002,127.0.0.1:7003
    16. # commandTimeout: 5000
    17. datasource:
    18. driver-class-name: com.mysql.cj.jdbc.Driver
    19. #driver-class-name: org.postgresql.Driver
    20. #driver-class-name: oracle.jdbc.OracleDriver
    21. #driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
    22. druid:
    23. # MySql、PostgreSQL、SqlServer校验
    24. validation-query: select 1
    25. # Oracle校验
    26. #validation-query: select 1 from dual
    27. #项目模块集中配置
    28. blade:
    29. #分布式锁配置
    30. lock:
    31. enabled: false
    32. address: redis://localhost:6379
    33. #多团队协作服务配置
    34. ribbon:
    35. rule:
    36. #开启配置
    37. enabled: true
    38. #负载均衡优先调用的ip段
    39. prior-ip-pattern:
    40. - 192.168.0.*
    41. - 127.0.0.1
    42. #通用开发生产环境数据库地址(特殊情况可在对应的子工程里配置覆盖)
    43. datasource:
    44. dev:
    45. # MySql
    46. url: jdbc:mysql://localhost:3306/bladex?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&allowMultiQueries=true&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
    47. username: root
    48. password: 123456
    49. # xxl-job
    50. job:
    51. dev:
    52. # MySql
    53. url: jdbc:mysql://localhost/xxl_job?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&allowMultiQueries=true&serverTimezone=GMT%2B8
    54. username: root
    55. password: 123456
    56. # PostgreSQL
    57. #url: jdbc:postgresql://127.0.0.1:5432/bladex
    58. #username: postgres
    59. #password: 123456
    60. # Oracle
    61. #url: jdbc:oracle:thin:@127.0.0.1:1521:orcl
    62. #username: BLADEX
    63. #password: BLADEX
    64. # SqlServer
    65. #url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=bladex
    66. #username: bladex
    67. #password: bladex
    68. # stream:
    69. # bindings: # 服务的整合处理
    70. # output: # 输出通道的名称
    71. # destination: deleteFileExchange #表示要使用的 Exchange 名称定义
    72. # content-type: application/json # 消息类型
    73. # binder: defaultRabbit
    74. # true为注册服务到nacos上,false为不注册
    75. cloud:
    76. service-registry:
    77. auto-registration:
    78. enabled: true
    79. # mybatis-plus
    80. mybatis-plus:
    81. # MyBatis映射器文件的位置
    82. mapper-locations: classpath:mapper/**/*Mapper.xml
    83. # 枚举包
    84. type-enums-package: org.springblade.police.*.entity.enums
    85. # SQL日志
    86. # configuration:
    87. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl