[Nacos] How to specify the IP (external network IP) of a business instance to be injected into Nacos

Description of requirements Use Spring Cloud Alibaba to build microservices. The business instance uses the intranet IP to register to the Nacos server by default, so the request will not be successful when crossing a local area network. So how to solve it? Answer: Specify the external network IP to register on Nacos. The following […]

Android 10-11 adapts to external storage solutions

Android API 29 brings breaking changes to files and folders. External storage is not allowed, as follows: Environment.getExternalStorageDirectory() = /mnt/sdcard Environment.getExternalStoragePublicDirectory(“test”) = /mnt/sdcard/test Only internal storage can be used getExternalFilesDir(“test”) = /mnt/sdcard/Android/data/com.my.app/files/test getExternalFilesDir(null) = /mnt/sdcard/Android/data/com.my.app/files But Google officially gave a backdoor. Only by adding the android:requestLegacyExternalStorage=”true” attribute to the application node in the AndroidManifest.xml file […]

Linux-kylin or ubuntu, configure IP, bind network port, container network isolation, internal and external communication

ip configuration Effective permanently or temporarily If it involves production, the mac address of the network port of each machine is different. For different systems, ubuntu and centos have different modification methods. Application scenario, based on the domestic system kylin, each production machine needs to maintain the same network port name When booting, the kylin […]

Build Tomcat HTTP service under Windows and release external network remote access

Article directory Preface 1. Build local Tomcat web page 1.1 Tomcat installation 1.2 Configure environment variables 1.3 Environment configuration 1.4 Tomcat running test 1.5 Cpolar installation and registration 2. Local web page publishing 2.1.Cpolar cloud settings 2.2 Cpolar local settings 3. Public network access test 4. Conclusion Foreword As a lightweight server, Tomcat not only […]

[K8S] External access request principle process (relationship between service, kube-proxy, pod)

Article directory Simple process 1. Ingress 2. Service 1. Key concepts 2.Service types and use cases: 1)ClusterIP: 2) NodePort 3) LoadBalancer 3. Kube-proxy 1 Introduction 2. Introduction to the three agency modes 1) userspace mode: 2) IPtables mode: 3) ipvs mode: 4. The relationship between service, kube-proxy and pod Simple process The user initiates a […]

Advanced Python Algorithms: Optimization and External Sorting of Merge Sort

Advanced Python Algorithm: Optimization and External Sorting of Merge Sort Introduction 1. Basic principles of merge sort 2. Optimization of merge sort 2.1 Bottom-up merge sort 2.2 Final optimization 3. External sorting 4. Performance comparison 5. Conclusion Introduction In computer science, sorting is a basic task, and merge sort ( Merge Sort ) is a […]

STM32H7 uses QSPI external flash (use openocd operation under Linux)

Introduction According to Amfulai’s STM32H7 tutorial, the QSPI peripheral of the H7 microcontroller is directly connected to the chip core, and the address is 0X90000000; then the external flash memory can be mapped through the QSPI peripheral and the code can be executed. The related operations are relatively simple on keil5, just configure a few […]

Yii2 starts the Restful style API interface, which is used for front-end and back-end separation projects or external third-party API interfaces.

Use advanced Yii2 template: yii2-app-advanced Reason: Establishing Restful’s Api is equivalent to an independent project, such as backend (backend) and frontend (frontend). Because the Api and the backend project are familiar with each other, only the encapsulation method is exposed to the outside world, so you need to copy the backend and re- Name it […]

Asynchronous access to external interfaces in the main thread of the program using spring boot

As title. The reason for using the asynchronous method is that the external interface is uncontrollable and unpredictable. If the other party is not online and therefore cannot be accessed, the only way is to throw an exception through timeout, which can easily cause congestion. For example, the following code has 2 timers, which refresh […]