KVM common commands

View all virtual machine status: [root@kvm7 vps] virsh list --all To view the specified virtual machine status: [root@kvm7 vps] virsh domstate vm01 running Start the virtual machine manually: [root@kvm7 vps] virsh start vmname To manually shut down a virtual machine: [root@kvm7 vps] virsh shutdown vmname Suspen ...

Posted by SnakeO on Sun, 22 Dec 2019 11:35:43 -0800

Spring boot - @ controlleradvice intercepts exceptions and handles them uniformly

SpringBoot is the product of a series of problems to simplify the creation, operation, debugging and deployment of Spring applications, The feature of automatic assembly enables us to pay more attention to the business itself rather than the external XML configuration. We can easily build a WEB project by following the specification and introdu ...

Posted by lssjg on Sun, 22 Dec 2019 03:49:47 -0800

spring02 - component registration - @ ComponentScan - auto scan components & specify scan rules

As we mentioned in the previous article, when @ Bean annotation is marked on a method, the method return value will be put into the ioc container when the ioc container is started In the development process, there are many package scanning methods. Next, we will introduce two methods: one is based on xml, the other is based on annotation. Let ...

Posted by dustinnoe on Sun, 22 Dec 2019 01:08:04 -0800

maven builds executable jar package

You can pay attention to some dry goods. Build jar package with dependency <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <appendAssemblyId>false</appendAssemblyId> <descriptorRefs> ...

Posted by jkejser on Sat, 21 Dec 2019 12:07:49 -0800

WeChat public number material management

1, There are two ways to upload permanent picture materials: 1. direct uploading of public number material management 2. Send POST request Use the curl command to upload an example: curl -F media=@pro_nlp.jpg "http://file.api.weixin.qq.com/cgi-bin/material/add_material?access_token=14_3-OW6zGI-yD1LzYlhovytEU81rqH6gDIrYimb4x ...

Posted by mator on Sat, 21 Dec 2019 11:09:11 -0800

3. Data transfer between Android based activities

Zero, preface Open the frontactivity, open the ToActivity through the button to return the result, and at the same time add the data to the intent, Fill TextView with data in onCreate method of ToActivity. Press the return button to pass the ToActivity data to FromActivity, verify the returned result in onActivityResult metho ...

Posted by Deany on Sat, 21 Dec 2019 09:23:21 -0800

How do I get the path to the assembly where the code resides?

Is there a way to get the path to the assembly where the current code resides?I don't want to call the path of the assembly, just the path that contains the code. Basically, my single meta-test needs to read some xml test files relative to the dll.I want this path to always resolve correctly, regardless of whether the test DLL is run from T ...

Posted by didgydont on Sat, 21 Dec 2019 04:43:20 -0800

Proficient in Spring Boot -- Part 5: write a Spring Boot starter package

In order to better understand the automatic configuration and working principle of spring boot, let's write a spring boot Hello starter today. This process is very simple, not much code. Let's see how to start. ##1. New maven project. This is not a demonstration. If you can't do it yourself, baidu... Lala, because it's too simple 2. Create a ne ...

Posted by novicephp on Fri, 20 Dec 2019 09:15:18 -0800

Most useful property [off]

I know properties are very useful. There are predefined ones, such as [Browsable(false)] that allow you to hide properties in the Properties tab. This is a good question to explain attributes: What are the properties in. NET? What are the predefined properties (and their namespaces) that you actually use in your project? #1st floor [E ...

Posted by Mr.x on Fri, 20 Dec 2019 01:11:33 -0800

Realize page Jump - Intent

Intent can be understood as a messenger (intention), which cooperates to complete the communication between Android components. Intent to realize page Jump 1. Jump from page A to page B directly: startActivity(intent) 2. Start page B directly, and cut page B to return data to A: startActivityForResult(intent,requestCode), U ...

Posted by thetechgeek on Thu, 19 Dec 2019 11:16:08 -0800