spring-configuration-metadata.json 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. {
  2. "groups": [
  3. {
  4. "name": "modbus",
  5. "type": "com.jwk.spring.boot.autoconfigure.ModbusProperties",
  6. "sourceType": "com.jwk.spring.boot.autoconfigure.ModbusProperties"
  7. },
  8. {
  9. "name": "modbus.rtu-master",
  10. "type": "com.jwk.spring.boot.autoconfigure.ModbusProperties$RtuMaster",
  11. "sourceType": "com.jwk.spring.boot.autoconfigure.ModbusProperties"
  12. },
  13. {
  14. "name": "modbus.tcp-master",
  15. "type": "com.jwk.spring.boot.autoconfigure.ModbusProperties$TcpMaster",
  16. "sourceType": "com.jwk.spring.boot.autoconfigure.ModbusProperties"
  17. }
  18. ],
  19. "properties": [
  20. {
  21. "name": "modbus.rtu-master.baud-rate",
  22. "type": "java.lang.Integer",
  23. "description": "波特率",
  24. "sourceType": "com.jwk.spring.boot.autoconfigure.ModbusProperties$RtuMaster",
  25. "defaultValue": 9600
  26. },
  27. {
  28. "name": "modbus.rtu-master.data-bits",
  29. "type": "java.lang.Integer",
  30. "description": "数据位的位数,RTU是8位,ASCII是7位",
  31. "sourceType": "com.jwk.spring.boot.autoconfigure.ModbusProperties$RtuMaster",
  32. "defaultValue": 8
  33. },
  34. {
  35. "name": "modbus.rtu-master.flow-control-in",
  36. "type": "java.lang.Integer",
  37. "description": "硬件之间输入流应答控制",
  38. "sourceType": "com.jwk.spring.boot.autoconfigure.ModbusProperties$RtuMaster",
  39. "defaultValue": 0
  40. },
  41. {
  42. "name": "modbus.rtu-master.flow-control-out",
  43. "type": "java.lang.Integer",
  44. "description": "硬件之间输出流应答控制",
  45. "sourceType": "com.jwk.spring.boot.autoconfigure.ModbusProperties$RtuMaster",
  46. "defaultValue": 0
  47. },
  48. {
  49. "name": "modbus.rtu-master.open",
  50. "type": "java.lang.Boolean",
  51. "description": "是否打开串口",
  52. "sourceType": "com.jwk.spring.boot.autoconfigure.ModbusProperties$RtuMaster",
  53. "defaultValue": false
  54. },
  55. {
  56. "name": "modbus.rtu-master.parity",
  57. "type": "java.lang.Integer",
  58. "description": "奇偶校验位,无校验是0,奇校验是1,偶校验是2",
  59. "sourceType": "com.jwk.spring.boot.autoconfigure.ModbusProperties$RtuMaster",
  60. "defaultValue": 0
  61. },
  62. {
  63. "name": "modbus.rtu-master.port",
  64. "type": "java.lang.String",
  65. "description": "串口",
  66. "sourceType": "com.jwk.spring.boot.autoconfigure.ModbusProperties$RtuMaster",
  67. "defaultValue": "COM1"
  68. },
  69. {
  70. "name": "modbus.rtu-master.stop-bits",
  71. "type": "java.lang.Integer",
  72. "description": "停止位的位数,如果无奇偶校验为2,有奇偶校验为1",
  73. "sourceType": "com.jwk.spring.boot.autoconfigure.ModbusProperties$RtuMaster",
  74. "defaultValue": 1
  75. },
  76. {
  77. "name": "modbus.tcp-master.host",
  78. "type": "java.lang.String",
  79. "description": "ip",
  80. "sourceType": "com.jwk.spring.boot.autoconfigure.ModbusProperties$TcpMaster",
  81. "defaultValue": "localhost"
  82. },
  83. {
  84. "name": "modbus.tcp-master.open",
  85. "type": "java.lang.Boolean",
  86. "description": "是否打开Tcp连接",
  87. "sourceType": "com.jwk.spring.boot.autoconfigure.ModbusProperties$TcpMaster",
  88. "defaultValue": false
  89. },
  90. {
  91. "name": "modbus.tcp-master.port",
  92. "type": "java.lang.Integer",
  93. "description": "端口",
  94. "sourceType": "com.jwk.spring.boot.autoconfigure.ModbusProperties$TcpMaster"
  95. }
  96. ],
  97. "hints": []
  98. }