JMH quick start
Introduction to JMH
JMH is a tool set dedicated to code micro benchmarking. JMH is developed by the team implementing Java virtual machine. Since the JVM has become more and more intelligent, it may be optimized to varying degrees in the compilation stage, class loading stage and running stage of java files, so the code written by developers ...
Posted by Uranium-235 on Fri, 26 Nov 2021 13:16:52 -0800
Spring Data JPA - property details
Recently, I checked a spring data jpa problem. In fact, it can not be regarded as a framework level problem, but rather a configuration problem; Because spring data jpa has not been used before (more mybatis or self-developed orm components), it is expected to record the configuration of spring data jpa through this article.
Starting from the ...
Posted by umer on Fri, 26 Nov 2021 13:09:54 -0800
[Java notes] polymorphism
polymorphic
Before introducing the concept of polymorphism, let's introduce upward transformation as an introduction.
1, Upward transformation
A variable of Person type can point to an instance of Student type:
Person p = new Student();
This is because Student inherits from Person, so it has all the functions of Person. If a variable of P ...
Posted by Fking on Fri, 26 Nov 2021 12:49:16 -0800
Display name, student number, temperature, humidity and character scrolling based on OLED
catalogue
1, SPI introduction
2, OLED displays name and student number
3, OLED display temperature and humidity
4, OLED displays scrolling characters
5, Summary
6, Reference link
1, SPI introduction
1. Introduction to SPI protocol
SPI protocol is a serial peripheral interface proposed by Motorola, wh ...
Posted by iacataca on Fri, 26 Nov 2021 12:41:17 -0800
Transplantation of uCOS into STM32F103C8T6 based on HAL Library
1. Use CubeMX to build STM32F103C8T6HAL Library
Configure RCC
Configure SYS
Set PC13 to GPIO_Output is used to light up LED lights
Set Serial Port USART1
Setup Project
Click Generate Code and open the project in Keil.
Add statements to the while loop in the main function
while (1)
{
/* USER CODE END WHILE */
/ ...
Posted by jlsports on Fri, 26 Nov 2021 12:33:56 -0800
Configuring MySQL master-slave replication based on docker
Master slave replication
working principle
Master slave replication is a high availability and high performance solution provided by MySQL.
The working principle is divided into the following three steps:
1. The master records the data changes in * * binlog * *.
2. The I/O thread from the slave saves the binary log read from the master lib ...
Posted by jay_bo on Fri, 26 Nov 2021 12:30:43 -0800
2021SC@SDUSC [Application and Practice of Software Engineering] Cocoon Project 9-xml Folder Analysis
2021SC@SDUSC
JaxpSAXParser
1. Summary
SAX parser using JAXP 1.1 compliant parser Inherited from AbstractJaxpParser
2. Main Properties
//SAX Parser Factory
protected SAXParserFactory factory;
//Whether the namespace should also be used as a judgment flag for attributes, defaulting to false
protected boolean nsPrefixes = false;
//The judg ...
Posted by Dave100 on Fri, 26 Nov 2021 12:22:45 -0800
Weekly leetcode - 5/NC17/121/122/123/112/309/714/2/415
leetcode - 5. Longest palindrome substring
Give you a string s and find the longest palindrome substring in S.
Example 1:
Input: s = "babad"
Output:"bab"
Explanation:"aba" The same answer is in line with the meaning of the question.
Example 2:
Input: s = "cbbd"
Output:"bb"
Example 3:
Input: s = "a"
Output:"a"
Example 4:
Input: s = "ac" ...
Posted by ripcurlksm on Fri, 26 Nov 2021 12:07:01 -0800
Gin framework: log configuration management
introduceThrough a complete example, manage logs reasonably in the Gin framework.What are the usage scenarios?Log auto scroll
Split into multiple log files
Log format modification
waitWe will use rk-boot To start the microservices of the Gin framework.Please visit the following address for a complete tutorial:https://rkdocs.netlify.app/cnins ...
Posted by phpPunk on Fri, 26 Nov 2021 11:47:10 -0800
You said you would Promise? Can you solve these five problems in the project?
prefaceHello, I'm Lin Sanxin. In the most easy to understand words, the most difficult knowledge point is my motto. The foundation is the advanced premise and my initial intention. As we all know, Promise is very important in our development. I think the use level of Promise can be divided into three levels1. Master the basic use of Promise2. M ...
Posted by koglakci on Fri, 26 Nov 2021 11:03:27 -0800