| | |
| | | "configurations": [ |
| | | { |
| | | "type": "java", |
| | | "name": "ModuleA", |
| | | "request": "launch", |
| | | "mainClass": "com.example.springboot.component.ModuleA", |
| | | "projectName": "springboot-vue3" |
| | | }, |
| | | { |
| | | "type": "java", |
| | | "name": "ModuleB", |
| | | "request": "launch", |
| | | "mainClass": "com.example.springboot.component.ModuleB", |
| | | "projectName": "springboot-vue3" |
| | | }, |
| | | { |
| | | "type": "java", |
| | | "name": "MyGenerator", |
| | | "request": "launch", |
| | | "mainClass": "MyGenerator", |
| | |
| | | public static void main(String[] argv) throws Exception {
|
| | | // 创建连接工厂
|
| | | ConnectionFactory factory = new ConnectionFactory();
|
| | | factory.setHost("localhost");
|
| | | factory.setHost("10.153.19.150");
|
| | |
|
| | | try (Connection connection = factory.newConnection();
|
| | | //channel 是通过 connection 创建的一个 AMQP 信道对象
|
| | |
| | | public class SpianServiceNew { |
| | | @Autowired |
| | | private SpianMapper spianMapper; |
| | | //读取DB105区文件 |
| | | |
| | | // @GetMapping("/all") |
| | | public Short selectAll(String glassid) { |
| | | |
| | | //读取DB105区文件 |
| | | PlcParameterObject plcmes=PLCAutoMes.PlcMesObject; |
| | | //读106 |
| | | PlcParameterObject plcread=PLCAutoMes.PlcReadObject; |
| | | // @GetMapping("/all") |
| | | public Short selectAll(String glassid) { |
| | | |
| | | int cage1 = 0; |
| | | int cells; |
| | |
| | | spring.jackson.date-format=yyyy-MM-dd HH:mm:ss |
| | | spring.jackson.time-zone=GMT+8 |
| | | |
| | | spring.rabbitmq.host=localhost |
| | | spring.rabbitmq.host=10.153.19.150 |
| | | spring.rabbitmq.port=5672 |
| | | spring.rabbitmq.username=guest |
| | | spring.rabbitmq.password=guest |