Applicant Ali, byte beating, Spring IOC and factory mode that Meituan must master
Spring IOC and Factory Mode
PS: The content of this article is hard core, which requires a better understanding of java's object-oriented, reflection, class loader, generics, properties, XML and other basic knowledge.
(1) Brief introduction
Before talking about Spring IOC, it's necessary to talk about Factory Pattern.Factory mode separates the ...
Added by edkellett on Fri, 08 May 2020 20:56:05 +0300
The loading of resources in Spring is the same thing!
1. Introduction
In JDK, java.net.URL is applicable to the classes that load resources, but the implementation classes of URL access network resources, and there is no way to obtain files and ServletContext from class path or relative path, Although the new handler can be implemented by customizing the extended URL interface, it is very complex. ...
Added by isam4m on Thu, 07 May 2020 16:15:51 +0300
HDFS - operation and maintenance
1, Add node
Operating system configuration: ① host name, network, firewall, ssh configuration
ssh-keygen -t rsa
At the same time, the auth*-keys file of ssh of any node in the cluster can be distributed to the latest node
Add the domain name mapping of this node in the / etc/hosts file of all nodes
Copy the configuration file of namenode to ...
Added by Rayman3.tk on Wed, 06 May 2020 02:22:05 +0300
Popular understanding of spring source code -- parsing and registering bean definitions
Popular understanding of spring source code (5) -- parsing and registering bean definitions
Last section talked about how to get document. After converting the document to document, the next extraction and registration bean is our play.
protected int doLoadBeanDefinitions(InputSource inputSource, Resource resource)
throws Bea ...
Added by TEENFRONT on Wed, 06 May 2020 00:53:03 +0300
How spring AOP generates proxy objects
The framework is to leave the complex to itself, the simple to coden, as simple as writing hello world
When developing Spring AOP programs in the early years, aop was configured with xml files (now xml is not popular, annotation @ EnableAspectJAutoProxy is popular), and then framework parsing,
For example:
How is this configuration resolved, ...
Added by Gaia on Tue, 05 May 2020 11:14:38 +0300
Use of Spring JDBC
Spring's JDBC module is responsible for database resource management and error handling, which greatly simplifies the operation of the database by the developers, so that the developers can get rid of the tedious database operation, so as to put more energy into writing business logic.
For the Spring framework of database operation, the JdbcTem ...
Added by twilitegxa on Tue, 05 May 2020 09:44:21 +0300
Response object of Servlet
Response object
Function: set response message
Set response line
Format: HTTP/1.1 200 ok
Set status code: setStatus (int sc)
Set response header: setHeader (String name, String value)
Set response body
Use steps
Get output stream
Character output: PrintWrite getWriter()
Byte output stream: ServletOutputStream getoutputstream()
Output ...
Added by SoaringUSAEagle on Sun, 03 May 2020 16:18:35 +0300
tyboot - Rapid development of scaffolding based on Spring Boot
tyboot
Source code:
https://gitee.com/magintursh/tyboot
https://github.com/magintursh/tyboot
If you like, you can give a star for more people to see.
introduce
tyboot is a springboot-based service-side scaffold for the rapid development of single services. You need a micro-service solution to see another project, tycloud (still under improveme ...
Added by peterg012 on Sun, 03 May 2020 14:28:45 +0300
Android advanced way: setting and monitoring in the lower right corner of the soft keyboard
In the project, you may encounter the need to modify the button at the bottom right corner of the soft keyboard. Although you have written it several times, you still feel relieved to concentrate on taking notes here.
Effect :
Note (key points):
Xml medium
1. Confirm the function display keyboard in the lower rig ...
Added by texmansru47 on Sun, 03 May 2020 13:58:44 +0300
Mybatis dynamic SQL query and update
Queries are often used to < if > < choose > < when > < otherwise > < trim > tags, and they all support ognl expressions --|The < if > condition judgment is the same as if in Java, such as
<if test="id!=null and id!=''">
--|< choose > is just like Java's switch with break, which is used with < ...
Added by clio-stylers on Sun, 03 May 2020 09:51:47 +0300