application-prod.yml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. # 数据源配置
  2. spring:
  3. datasource:
  4. type: com.alibaba.druid.pool.DruidDataSource
  5. driverClassName: com.mysql.cj.jdbc.Driver
  6. druid:
  7. # 主库数据源
  8. master:
  9. url: jdbc:mysql://localhost:3306/warewms-jnmc-jinco?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  10. username: warewms
  11. password: warewms123
  12. # 从库数据源
  13. slave:
  14. # 从数据源开关/默认关闭
  15. enabled: false
  16. url:
  17. username:
  18. password:
  19. # 初始连接数
  20. initialSize: 5
  21. # 最小连接池数量
  22. minIdle: 10
  23. # 最大连接池数量
  24. maxActive: 50
  25. # 配置获取连接等待超时的时间
  26. maxWait: 60000
  27. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  28. timeBetweenEvictionRunsMillis: 60000
  29. # 配置一个连接在池中最小生存的时间,单位是毫秒
  30. minEvictableIdleTimeMillis: 300000
  31. # 配置一个连接在池中最大生存的时间,单位是毫秒
  32. maxEvictableIdleTimeMillis: 900000
  33. # 配置检测连接是否有效
  34. validationQuery: SELECT 1 FROM DUAL
  35. testWhileIdle: true
  36. testOnBorrow: false
  37. testOnReturn: false
  38. webStatFilter:
  39. enabled: true
  40. statViewServlet:
  41. enabled: true
  42. # 设置白名单,不填则允许所有访问
  43. allow:
  44. url-pattern: /druid/*
  45. # 控制台管理用户名和密码
  46. login-username: ruoyi
  47. login-password: 123456
  48. filter:
  49. stat:
  50. enabled: true
  51. # 慢SQL记录
  52. log-slow-sql: true
  53. slow-sql-millis: 1000
  54. merge-sql: true
  55. wall:
  56. config:
  57. multi-statement-allow: true
  58. # 日志配置
  59. logging:
  60. level:
  61. com.ruoyi: info
  62. org.springframework: info
  63. # 是否开启服务
  64. init-task:
  65. autosend: true # 自动下发任务
  66. aciservice: true # ndc通讯
  67. modbus:
  68. tcp-master:
  69. first: # 称重机
  70. open: true
  71. host: 192.168.100.161
  72. port: 502
  73. second: # 按钮盒
  74. open: true
  75. host: 192.168.100.151
  76. port: 502
  77. third: # 按钮盒
  78. open: true
  79. host: 192.168.100.152
  80. port: 502
  81. fourth: # 按钮盒
  82. open: true
  83. host: 192.168.100.153
  84. port: 502
  85. fifth: # 按钮盒
  86. open: true
  87. host: 192.168.100.154
  88. port: 502
  89. sixth: # 充电机
  90. open: true
  91. host: 192.168.100.160
  92. port: 8899