6. AOP Search Enhancer for Spring Source Analysis 6
1. AOP use case of JDK dynamic proxy
public interface PersonService {
void sayHello();
}
public class PersonServiceImpl implements PersonService{
@Override
public void sayHello() {
System.out.println("lwh sayHello");
}
}
@Aspect
public class Proxy1 {
@Pointcut("execution(* *.sayHello(..))")
public void sayHell ...
Posted by realchamp on Thu, 10 Oct 2019 07:40:38 -0700
React Source Reading-2_031
React Source Reading-2
In a typical React data stream, props is the only way for parent components to interact with their children. To modify a subitem, reproduce it using new props. However, in some cases, subitems need to be forced to be modified outside of the typical data stream. The child to be modified can be an instance of the react comp ...
Posted by kutyadog on Thu, 10 Oct 2019 04:56:49 -0700
React Source Reading - 4_033
React Source Reading-4
Context
Context provides a way to pass data through a component tree without having to pass props attributes manually at each level.
When to use Context
Context aims to share data that can be considered "global" within a component tree, such as currently authenticated users, topics or preferred languages.
con ...
Posted by rob_maguire on Thu, 10 Oct 2019 04:38:13 -0700
2. Flutter Common Component-Text Text Text Component
New Flutter Project
Open Andorid Studio, appear the following interface, select the second option, and create a new Flutter project.
After opening the second window, select the first option, Flutter Application, and click Next.
Fill in or select the project name, Flutter SDK installation path, project save path and project description r ...
Posted by Rebelrebellious on Thu, 10 Oct 2019 04:24:32 -0700
Attribute Loading Details of SpringBook Tutorial
Catalog
Loading property order
Random attribute
Command Line Properties
Application property file
Profile-specific attributes
Placeholders in attributes
YAML attribute
Access attribute
Multi-profile configuration
Disadvantages of YAML
Attribute prefix
Loose binding rules for attributes
Attribute transformation
Time U ...
Posted by chaser7016 on Thu, 10 Oct 2019 04:08:12 -0700
Spring 5 Source Deep Parsing - --- Generation of AOP Agent
After obtaining all the enhancements of the corresponding bean s, the agent can be created. Back to the wrapIfNecessary method of AbstractAutoProxyCreator, as follows:
1 protected static final Object[] DO_NOT_PROXY = null;
2
3 protected Object wrapIfNecessary(Object bean, String beanName, Object cacheKey) {
4 if (StringUtils.hasL ...
Posted by jonez on Thu, 10 Oct 2019 03:30:58 -0700
Introduction and Summary of JavaScript Strict Patterns
Strict model advantages:
Eliminate some unreasonable and imprecise aspects of Javascript grammar and reduce some unexpected situations.Eliminate some unsafe aspects of code operation to ensure the safety of code operation;Improving the efficiency of compiler and increasing the running speed;Note that the same code may have different results in ...
Posted by rahish on Thu, 10 Oct 2019 03:13:55 -0700
html test paper (including latex) downloaded into word - - java
html test paper (including latex) downloaded into word
The main objectives are:
Share the html format test papers with latex downloaded in word format, and add some flexible typesetting style
Receive reviews from the masses and get feedback
Cheat for reward, or github star
Demand Background:
html test paper with latex formula, downl ...
Posted by russ8 on Thu, 10 Oct 2019 01:46:04 -0700
5. Extension of Container Function in Spring Source Analysis 5
1,ApplicationContext
ApplicationContext ctx = new ClassPathXmlApplicationContext("beanFactory.xml");
public ClassPathXmlApplicationContext(String configLocation) throws BeansException {
this(new String[] {configLocation}, true, null);
}
public ClassPathXmlApplicationContext(String[] configLocations, boolean refresh, ApplicationContext pare ...
Posted by skypilot on Wed, 09 Oct 2019 23:49:11 -0700
The common layout of Android development is all in this article!
I. Brief Introduction
As shown in the following figure, according to the way the interface is written, it can be divided into traditional layout and new layout.
Linear layout: ** is the most commonly used layout in demo practice. It can be divided into two types: horizontal and vertical, that is, to set its attribute orientation: "vertic ...
Posted by GFXUniverse on Wed, 09 Oct 2019 22:35:34 -0700