Details of @ ConditionalOnProperty in Spring Boot
We often see the use of @ ConditionalOnProperty annotation in the automatic configuration of Spring Boot. This article will take you to understand the function of this annotation.
Use in Spring Boot
In the source code of Spring Boot, for example, automatic configuration involving Http encoding, automatic configuration of data source type, etc., ...
Posted by nocontrol on Mon, 09 Dec 2019 04:33:25 -0800
input(type='file ') upload multiple photos and display them to the background
The following content is the result of network excerpt and practice modification. If it is the same, please understand!!!!
1. First, the front-end page code:
Where, < input type = "file" id = "file_input" name = "filepath" multiple = "multiple" / >, the multiple attribute needs to be set
<styl ...
Posted by noise on Sun, 08 Dec 2019 21:25:56 -0800
Interpret and process the beautifullreport report template
After the script using unittest framework is executed, an html report will be generated
This report makes an html template in advance, writes the corresponding content to the template, and generates a final report. This report template will exist in the following path after passing the PIP install beautiful report:
C: \ program files \ python37 ...
Posted by herreram on Sun, 08 Dec 2019 19:58:41 -0800
Nodejs device is connected to alicloud IoT platform
1. Preparation
1.1 register alicloud account
Use personal Taobao account or cell phone number to open the account of Ali cloud, and pass the real name authentication (can be certified by Alipay).
1.2 free IoT Suite
Product official website https://www.aliyun.com/product/iot
1.3 software environment
Nodejs installation https://nodejs.org/en/dow ...
Posted by paradigmapc on Sun, 08 Dec 2019 19:48:06 -0800
A simple example of Deferred class code
A simple example of Deferred class code in openTSDB source code details
1. example 1
1.1 code
/**
* simplest with only 1 defer
* In the simplest case, there is only one defer
*/
public static void test1() {
try {
//Deferred deferred = new deferred(); - > no parameters are passed, and direct n ...
Posted by popsiclesph on Sun, 08 Dec 2019 18:55:11 -0800
The use of Block reverse value transfer in iOS development
stay Reverse value transfer through proxy in iOS development In this paper, we analyze the use of proxy mode to reverse value transfer. In fact, there are some other ways, such as notification, Block, etc. compared with proxy, I personally think it is simpler, but we need to deal with the details, such as Block circular reference. ...
Posted by phoenixx on Sun, 08 Dec 2019 16:03:39 -0800
vue-day1 of front end and mobile development
Abbreviation and event modifier for v-on of Vue instruction event modifier:. stop prevents bubbling. prevent block default events. capture use event capture mode when adding event listeners. self triggers the callback only when the event is triggered by the element itself (for example, not a child element). once event is triggered only once
v- ...
Posted by schandhok on Sun, 08 Dec 2019 12:00:45 -0800
Review of learning difficulties in the four core components of Android studio
Activity
In an application, an activity can be used to represent an interface, the beginning of an activity, the start of an activity component, and the end of an activity represents the end of an activity's life cycle.
activity status
performance
Resumed
At the top of the stack, visible and interactive
Paused
State whe ...
Posted by jane on Sun, 08 Dec 2019 08:38:03 -0800
Add interest to the web page with Github's 50000 star css animation library
How much can css animation do?
Github has a very good animation project with 50000 stars!
Project address: https://github.com/daneden/animate.css
Online effect display:
https://daneden.github.io/animate.css/
There is only one css file in the whole project of animate, and the use method is very simple ...
Posted by greenday on Sun, 08 Dec 2019 05:34:57 -0800
[most detailed in history] traverse Windows files
File traversal
abstractWindows file traversal and process traversal are very similar. If you don't understand the process traversal suggestions, take a look at my previous two articles Traverse system process and Traversal system process module ! To traverse a file, you need to know the structure of Win32? Find? Data and the API GetCurrentDirec ...
Posted by Cailean on Sun, 08 Dec 2019 05:27:14 -0800