The SpringBoot series parses complex parameters
SpringBoot series (III) parsing complex parameters
preface
When we write the interface, we will pass in complex parameters, such as Map and Model. Such similar parameters will be parsed by the corresponding parameter parser, and finally the parsed value will be put into the request field. Let's explore the principle together.
Tip: th ...
Posted by Prank on Sun, 30 Jan 2022 04:28:37 +0100
Write a test framework | Java development practice
1, Foreword
Requirements: a testing framework is needed to test an IM} system and adapt to the current business logic.
Testing uses Jmeter. Jmeter can also test websocket. Why develop a testing framework yourself?
The most important point: TCP # protocol is user-defined. It cannot be well integrated with # Jmeter # and other frameworks. P ...
Posted by Alex C on Sun, 30 Jan 2022 03:00:08 +0100
9,000-word long text takes you through the SpringBoot startup process--the most detailed SpringBoot startup process in history--full of graphics and text
The interviewer's soul from deep inside asked, "Tell me about the springboot startup process"; Stuffy-faced interviewer: "It simplifies the configuration of spring, mainly because of the auto-assembly feature and it can be started directly because it has a tomcat container embedded in it"; Interviewer:'Well, yes, this is s ...
Posted by apenster on Sun, 30 Jan 2022 01:33:17 +0100
SpringBoot AOP configuring global transactions
The emergence of SpringBoot makes it very easy to use transactions in projects. There are two ways to use them, which are suitable for annotation transactions (declarative transaction management) of small projects and global transactions of large projects.
1. Annotation transactions. (secondary)
There are only two steps to annotate transactio ...
Posted by Chris-the dude on Sat, 29 Jan 2022 18:12:15 +0100
Automatic configuration of source code analysis
automatic assembly
According to the jar package dependency we added, some configuration class bean s will be automatically registered into the ioc container. We can use @ autowired or @ resource annotations where necessary
Question: how is Spring Boot automatically configured and which components are automatically configured?
We know that th ...
Posted by abigbluewhale on Sat, 29 Jan 2022 18:00:54 +0100
Mybatis read write separation
Introduction to off the shelf tools
MyCat
Active and good performance open source database middleware. It is a transparent database agent, which needs to ensure the high availability of services in the production environment.
ShardingSphere
ShardingSphere is composed of JDBC, Proxy and Sidecar (under planning), which can be deployed indepen ...
Posted by zoffi on Sat, 29 Jan 2022 14:22:46 +0100
linux installs docker and implements idea to encrypt connections using certificates
1. Environmental preparation1 Alibaba cloud servercentos7.9docker latest version2. Installation steps of dockerSet up warehouseInstall the required packages. Yum utils provides Yum config manager, and the device mapper storage driver requires device mapper persistent data and lvm2.sudo yum install -y yum-utils device-mapper-persistent-data lvm2 ...
Posted by the182guy on Sat, 29 Jan 2022 09:21:34 +0100
Spring type application cannot find the main function no main manifest attribute, in / APP Jar, spring boot Maven plugin pot?
Problem phenomenon
Error 1
An error is reported after the spring type application is started, no main manifest attribute, in / APP jar
Error 2
During the mvn build process, the message "repackage failed" will be prompted
Cause analysis
In most cases, it is because of the POM in spring application The spring boot Maven plug ...
Posted by syth04 on Sat, 29 Jan 2022 06:58:08 +0100
Can you say all the design patterns used in Spring?
This is the first article in the Spring interview question series. The theme of this article is: the design patterns involved in Spring and how to answer in the interview as comprehensively, accurately and deeply as possible.
This article only answers one question:
What design patterns are used in Spring? How are the differences realized?
...
Posted by AcidCool19 on Sat, 29 Jan 2022 05:41:07 +0100
Spring interview must learn - AOP/IOC
SpringIOC/AOP
There are two unavoidable contents in each interview:
Pre knowledge: dynamic agent, static agent, singleton mode, factory mode and singleton lock
IOC: inversion of control
Description: OOP is a design principle and the core of Spring framework Reason for use: A B two types attract each other to call B in A. Traditional: A ac ...
Posted by mastermike707 on Sat, 29 Jan 2022 04:07:26 +0100