Scope of bean
The annotation Scope of spring Component has several common scenarios, such as singleton, prototype, request, session and global session. This annotation can be used with @ Component and @ Bean. In particular, Scope annotation can be divided into ConfigurableBeanFactory and WebApplicatio ...
Posted by olsrey on Tue, 25 Feb 2020 22:50:08 -0800
1. Environmental preparation
On a linux machine, install the hadoop running environment. For the installation method, see: Establishment of HADOOP operation environment
2. Start HDFS and run MapReduce
2.1. Configure cluster
1. Configuration: hadoop-env.sh
Get the installation path of JDK in Linux system:
[root@ hadoop101 ~]# echo $JAVA_HOME
Posted by spooke2k on Tue, 25 Feb 2020 19:31:27 -0800
Summary of Spring Boot actual combat project (1)
Project design ideas (steps)
Development environment construction and log
git common commands
List of projects available for reference
1, Project design ideas (steps)
1. Analysis function: what are the functions and application scena ...
Posted by Paingiver on Tue, 25 Feb 2020 19:01:18 -0800
1. PySnooper - debugging Kit
pip install pysnooper
Using PySnooper to add a decorator to the function to be debugged, you can get the log of the running function, including the executed code line, execution time and the time when the local variable changes
Posted by The-Last-Escape on Mon, 24 Feb 2020 21:40:26 -0800
1. Core Container
Correspondence between Spring version and Java version
1. XML parsing:
2. Create objects dynamically based on the information obtained in step 1
The spring-ioc.xml file is as follows
Spring provides point p ...
Posted by loveranger on Mon, 24 Feb 2020 20:09:07 -0800
Flight data schedule.txt
Start, end, departure time, arrival time, price
Code optim ...
Posted by kaos057 on Mon, 24 Feb 2020 01:36:29 -0800
Coding specifications in the work, which need to be written in the future.
Before encoding, first write according to Alibaba's development specifications, if using idea, use its plug-ins.
In the case of springmvc, the following styles are best used to define the path:
@RequestMapping(value = "/upda ...
Posted by Clinger on Sun, 23 Feb 2020 19:25:16 -0800
1, Download Interface
1. Main interface download display
MainWindow first initializes aria and starts aria2. The startup method is in download.py.
# start aria2
start_aria = StartAria2Thread()
Posted by 0riole on Sun, 23 Feb 2020 00:38:50 -0800
I have combed the workflow and key source code of MyBatis when it is used alone. Now let's see how MyBatis works when it is integrated with Spring
Start with use
Spring integrates MyBatis
1. Introduce dependency. In addition to the dependency of MyBatis, you need to introduce the dependency of MyB ...
Posted by juschillin on Sat, 22 Feb 2020 20:43:01 -0800
1. Automatic assembly
When Spring assembles Bean properties, it is sometimes quite clear that a reference to a Bean needs to be assembled to the specified properties.For example, if there is only one Bean of type org.mybatis.spring.SqlSessionFactoryBean in our application context, then any ...
Posted by 990805 on Sat, 22 Feb 2020 16:17:00 -0800