AspectJ tangent indicator-02-@annotation
@annotation()
Restrict matching of join points with specified annotations
The final structure of each class is as follows:
1,Factory
package com.test.aspectj.expression;
/**
* Factory interface
*/
public interface Factory {
// Make products
void make();
// transport
void delivery(String address);
}
...
Posted by jdc44 on Wed, 29 Jan 2020 18:09:59 +0100
Reuse of component state logic: render props mode and higher-order components
Article directory
1, Render props mode
1.1 overview of react component reuse
1.2 thinking analysis
1.3 operation steps
1.4 children instead of the render attribute
1.5 code optimization
2, High order components
2.1 overview
2.2 thinking analysis
2.3 use steps
2.3 settings ` displayName`
2.4 transf ...
Posted by abduljan on Mon, 27 Jan 2020 08:52:43 +0100
Java annotation practice
Annotation practice
Roughly make a simple practice, make an ORM small scheme, and realize it by annotation
A user table information, field: id, user name, nickname, age, gender, address, email, mobile number
Simply retrieve each field or combination of conditions and print SQL to display the results
When retrieving data, we need to consi ...
Posted by Bikkebakke on Sun, 26 Jan 2020 17:40:58 +0100
ContentProvider, one of the four components of Android
Last time I talked about Activity, this time I talked about ContentProvider, one of the four components of Android
1. What is ContentProvider
ContentProvider is one of the four components of Android content provider
Function: data interaction & sharing between processes, i.e. cross process communication
2.uri introduc ...
Posted by InternetX on Sun, 26 Jan 2020 15:59:52 +0100
Web Foundation - HTML&CSS
Article Directory
HTML tags: form tags
CSS: Page Beautification and Layout Control
1. Concepts: Cascading Style Sheets Cascade Style Sheets
2. Benefits:
3. Use of CSS: How CSS works with html
1. Inline Styles
2. Internal Style
3. External Styles
4. css syntax:
5. Selector: Filter elements with simi ...
Posted by paulrichards19 on Thu, 23 Jan 2020 02:44:31 +0100
Super simple SpringBoot integrates Swagger2
Several pain points of handwritten Api documents:
When a document needs to be updated, it needs to send another copy to the front end, that is, the document update communication is not timely.
Ambiguous interface return result
You can't test the interface directly online. You usually need to use ...
Posted by BKPARTIES on Mon, 20 Jan 2020 08:30:39 +0100
One way circular list and java implementation of Joseph problem
The Josephu problem is also called "the problem of losing handkerchief".
Problem Description: set n children with number 1, 2, 3, 4... In a circle. It is agreed that children with number k will start counting from 1, and children who count to m in turn will be listed. Then the next one of ...
Posted by lorri on Mon, 20 Jan 2020 03:38:27 +0100
Learn more about oom (low memory crash) in iOS
In the iOS development process or user feedback, you may often see this situation. When you use it, you will crash. When you check the crash stack in the background, you cannot find the crash log. In fact, most of this may be due to the system's low memory crash, that is, oom (another possibility is tha ...
Posted by drums on Thu, 16 Jan 2020 10:18:18 +0100
Compatibility finishing for ios and Android front end
1. Date Compatibility
Under Android
Date.parse(new Date('2018-03-30 12:00:00'))
Under ios system
Date.parse(new Date('2018-03-30 12:00:00'))
Conversion is not possible.
Solution (compatibility writing)
Date.parse(new Date('2018/03/30 12:00:00')) || Date.parse(new Date('2018-03-30 12:00:00'))
Encapsul ...
Posted by ChrisDarl on Mon, 13 Jan 2020 03:18:34 +0100
Common methods of JavaScript project practice
On the front road, accumulate slowly
1. Get the parameter value passed by the URL through the parameter name
Method 1
GetQueryString:function(name){//Get the parameter value passed by the URL through the parameter name
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search ...
Posted by dotBz on Sun, 12 Jan 2020 17:45:09 +0100