vue2 uses axios

Integrating and using Axios for HTTP request operations in Vue 2 typically includes the following steps: 1. Install Axios: Install Axios through npm or yarn in the project directory. npm…

SpringBoot integrates MQTT (MqttClient)

1. SpringBoot integrates MQTT Create a project and introduce MQTT dependencies: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <version>2.3.12.RELEASE</version> </dependency> <!-- spring-integration-mqttrely --> <dependency> <groupId>org.springframework.integration</groupId> <artifactId>spring-integration-mqtt</artifactId> <version>6.1.2</version> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.18.28</version> </dependency> <dependency>…