Mirror Management, Port Mapping, Container Interconnection for Docker Containers

Layer of docker image Each instruction in the Dockerfile creates a new mirror layer; The mirror layer will be cached and reused; When the instructions of the Dockerfile are modified, the copied file changes, or the variables specified when the image is built are different, the corresponding mirror layer cache will fail. When the mirror cache ...

Posted on Sun, 09 Feb 2020 14:14:03 -0800 by py343

Spring Boot: Custom starter

In Spring Boot, the most commonly used is the starter. Starter can be understood as a pluggable plug-in. For example, if you want to use jdbc plug-in, you can use Spring Boot Starter jdbc. As the version goes on, the starter family grows. In the traditional Maven project, some layers and components are usually divided into modules to manage, so ...

Posted on Sun, 09 Feb 2020 10:33:04 -0800 by allanonschick

Host list for ansible, yml syntax, playbook details + operations

Contents of this chapter:inventory host list2. yml grammar3. playbook Details + Operations inventory host list ansible The default host list is/etc/ansible/hosts file //Host lists can be set manually or generated dynamically through Dynamic Inventory //Use FQDN for generic hostname vi /etc/ansible/hosts [webserver] #Square bracket set ...

Posted on Sun, 09 Feb 2020 09:28:59 -0800 by cybercrypt13

SpringBoot integrated Log4j

(1) Add dependency in pom.xml <!--Remove springboot Default log--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> <exclusions> <exclusion> <groupId>org.spri ...

Posted on Sun, 09 Feb 2020 07:07:54 -0800 by Arc

Spring transaction-04-isolation and propagation-3-TransactionTemplate

1, use Template classes that simplify the definition of procedural transactions and transaction exception handling. The central approach is{ @link #execute}, implementation supported{ @link Transaction code for the transactioncallback} interface. This template handles the transaction life cycle and possible exceptions, such as the transaction ...

Posted on Sun, 09 Feb 2020 06:11:44 -0800 by entropicsinkhole

Kafka consumer multithreaded implementation

Kafka Producer, the producer of Kafka, is thread-safe, whereas consumer KafkaConsumer is non-thread-safe.KafkaConsumer defines an acquire() method to detect if only one thread is currently operating and throws a ConcurrentModifycationException exception if other threads are operating: java.util.Co ...

Posted on Thu, 06 Feb 2020 19:46:51 -0800 by HUWUWA

POI processes Excel files for export

SXSSFWorkbook is used to generate a large number of Excel data files, the main principle is to generate excel with temporary storage space.POI requires more than 3.8, and the file format requirement generated is 07 and above, because the number of rows of Excel 07 and above is 1048576, which is very large, compared with over 60 ...

Posted on Thu, 06 Feb 2020 08:21:11 -0800 by Comtemplative

Small problems in project operation

I am used to the ready-made things. In this project of building environment operation, all kinds of problems that I have never seen come one after another. I can't help it. I can only record it, review it, and try to break through the realm of the great God as soon as possible... 1. For a small whit ...

Posted on Mon, 03 Feb 2020 22:43:59 -0800 by nileshkulkarni

Vue Cli3+SpringBoot

Follow today The blogger Learn the back-end registration encryption and login decryption functions. 1. To be honest, I didn't understand the application of Shiro framework in springboot. So I put the code to record what I did: First, the realm class of the realm package: package realm; import com.exa ...

Posted on Mon, 03 Feb 2020 08:07:24 -0800 by Kunax

Order small program, order system, management background batch import excel dishes data

During the period when the ordering system went online, many students gave feedback on whether a batch import function of dishes could be added. Because I am busy at ordinary times, I have no time to add the function of batch import of dishes. Today is just free time, let's teach you to realize the function of batch import of dishes. Later, t ...

Posted on Mon, 03 Feb 2020 03:17:20 -0800 by Spoiler