Spring Boot 2 about the use of ApplicationEvent

Spring Boot 2 about the use of ApplicationEvent Custom thread pool processing Processed through @ EventListener Implement user defined listening of ApplicationListener interface Implementation of SmartApplicationListener interface custom listening ApplicationEvent and Listener are the implementati ...

Posted on Tue, 15 Oct 2019 12:07:10 -0700 by Crashthatch

Experiment: building LAMP

Environmental Planning: Prepare three virtual machines 192.168.50.136: web 192.168.50.140: mysql 192.168.50.142: memcached First, three virtual machines are operated as follows: ① turn off the firewall, ② synchronize the time, ③ uninstall MariaDB LIBS and postfix; web server settings In 192.168.50.136 ...

Posted on Tue, 15 Oct 2019 11:38:09 -0700 by akufen

Fooddelivered robot - drive code of feeding robot module - key part of IO acquisition part

I. selection of key module: Film button 8P DuPont head, with a spacing of 2.54mm, can be inserted on the row pin to connect the circuit; the mortar color sticker on the back of the keyboard can be removed and firmly pasted on the surface of the chassis. It is suitable for the external expansion ...

Posted on Tue, 15 Oct 2019 11:23:26 -0700 by donald

Analysis of SpringBoot source code -- Analysis of SpringBoot project startup class SpringApplication

Source version description The source code of this article is spring boot 2.1.0 build, corresponding to spring framework 5.1.0.rc1. Note: This article only combs the process as a whole, without detailed and in-depth analysis. SpringBoot entry class @SpringBootApplication public class DemoApplication { public static void main(String[] a ...

Posted on Tue, 15 Oct 2019 10:46:44 -0700 by dan7474

Copy of Java IO file, copy of image, variable parameter, try...with...resource

public static void close(Closeable... io) / / variable parameter, equivalent to array Closeable... io / / variable parameter, equivalent to array when used (for loop traversal)The interface implemented by the Closeable I / O stream is used when releasing resources.try...with..resource auto release resource tool:try followed by (is;os). If the ...

Posted on Tue, 15 Oct 2019 10:36:53 -0700 by lox

php's method for wechat payment callback processing (Collection)

Wechat needs to receive payment results through asynchronous callback, whether it is wechat's built-in JSAPI payment, H5 external browser payment or scanning payment. This article introduces how to get wechat payment notice. Just write the following in the previously set callback address method:   //Process wechat payment callback ...

Posted on Tue, 15 Oct 2019 10:11:11 -0700 by glima

How to de duplicate array slices by Go

The Go standard library itself does not provide a function to remove duplicate elements from slice, which needs to be implemented by itself. The following provides an implementation idea. If there is a better implementation method, please leave a message for discussion. package main import ( "fmt" ) func main() { s := []string{"hello" ...

Posted on Tue, 15 Oct 2019 09:32:26 -0700 by angelcool

Detailed explanation of ACL extended access control list

Experiments in this chapter: Allow win10-1 to access linux web Services Disable win10-1 from accessing other linux services Allow win10 to access win10-2 host Detailed explanation of ACL extended access control list 1. configure GNS3 Three hosts, one routerWin10-1: bind VMnet1 network cardwin10-2: bind VMnet2 network cardlinux: bind VMnet8 ...

Posted on Tue, 15 Oct 2019 09:21:10 -0700 by Azala

Analysis of IP resolution exception and source code of dubbo registration service

https://www.cnblogs.com/leo-li-3046/p/5702479.html   When using dubbo to register the service, you will encounter an IP resolution error which will result in the failure of normal access. For example, the IP address of this computer is 172.16.11.111, but the actual resolution is 180.20.174.11. As a ...

Posted on Tue, 15 Oct 2019 09:08:15 -0700 by PHP Monkeh

JS learning notes (Chapter 10) (DOM operation technology)

1. Dynamic script There are two ways to create dynamic scripts: inserting external files and directly inserting Javascript code. (1) calling external files function loadScript(url) { var script = document.createElement("script"); script.type = "text/javascript"; script.src = url; document.body.appendChild(script); } //Cal ...

Posted on Tue, 15 Oct 2019 08:43:53 -0700 by LexHammer