You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
2.7 KiB

  1. eureka:
  2. client:
  3. service-url:
  4. defaultZone: http://localhost:1101/eureka/
  5. #mapper文件加载支持两种方式,一种是在config文件中配置,一种是在这里配置
  6. mybatis:
  7. mapper-locations: classpath:mybatis/mapping/*.xml
  8. type-aliases-package: com.neusoft.smart.pos.persistent.domain
  9. logging:
  10. level:
  11. root: info
  12. #DataSource配置,默认主数据源
  13. spring:
  14. profiles:
  15. include: rabbitmq
  16. datasource:
  17. type: com.alibaba.druid.pool.DruidDataSource
  18. driverClassName: com.mysql.jdbc.Driver
  19. url: jdbc:mysql://172.17.173.169:3306/smart_pos_platform_catering_db?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&autoReconnect=true&useSSL=false
  20. username: root
  21. password: fm2020test
  22. #初始化大小,最小,最大
  23. initialSize: 5
  24. minIdle: 5
  25. maxActive: 20
  26. #配置获取连接等待超时的时间
  27. maxWait: 60000
  28. #配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  29. timeBetweenEvictionRunsMillis: 60000
  30. #配置一个连接在池中最小生存的时间,单位是毫秒
  31. minEvictableIdleTimeMillis: 300000
  32. validationQuery: SELECT 1 FROM DUAL
  33. testWhileIdle: true
  34. testOnBorrow: false
  35. testOnReturn: false
  36. #打开PSCache,并且指定每个连接上PSCache的大小
  37. poolPreparedStatements: true
  38. maxPoolPreparedStatementPerConnectionSize: 20
  39. #配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  40. filters: stat,wall,log4j
  41. #通过connectProperties属性来打开mergeSql功能;慢SQL记录
  42. connectionProperties: druid.stat.mergeSql:true;druid.stat.slowSqlMillis:5000
  43. #合并多个DruidDataSource的监控数据
  44. useGlobalDataSourceStat: true
  45. redis:
  46. #数据库索引
  47. database: 0
  48. #主机地址
  49. host: 172.17.173.169
  50. #主机端口
  51. port: 6379
  52. #密码
  53. password:
  54. #最大连接数,为负表示不限制
  55. maxTotal: 8
  56. #最大阻塞等待时间,为负表示不限制
  57. maxWait: -1
  58. #最大空闲连接
  59. maxIdle: 8
  60. #最小空闲连接
  61. minIdle: 0
  62. #连接超时时间
  63. timeout: 0
  64. rabbitmq:
  65. host: localhost
  66. username: fmpos
  67. password: fmpos@server123
  68. port: 5672
  69. aliyunRocketmq:
  70. accessKeyId: LTAI4G7ixY4AhvM35F8o3W3V
  71. accessKeySecret: VfWqGb83qIQrS9us45utskl8itd7ry
  72. namesrvAddr: http://MQ_INST_1796289517488555_Bcqaq2is.cn-beijing.mq-internal.aliyuncs.com:8080
  73. security:
  74. enable-csrf: false
  75. ignored:
  76. - /**