2021-12-06 the 43rd step towards the program
catalogue
1, Construction of pseudo distributed
1.1 introduction to pseudo distributed mode
1.2 platform software description
1.3 requirements for building pseudo distributed environment
1.3.1 environmental requirements
1.3.2 firewall shutdown confirmation
1.3.3 configuration mapping
1.3.4 ensure that ssh is valid for password free auth ...
Posted by Shifty Geezer on Mon, 06 Dec 2021 14:16:42 -0800
Niu Ke's Diary (December 6, 2021)
Niu Ke's Diary (December 6, 2021)
Title:
Which of the following modifiers modifies a variable that is shared by all objects generated by the same class ()
public
private
static
final
Resolution:
Correct answer: C
When static modifies a field, it will certainly change the way the field is created (each static modified field has only on ...
Posted by fry2010 on Mon, 06 Dec 2021 13:50:58 -0800
List 6 methods to remove weight, this method is the most perfect!
In daily business development, there are occasional scenarios in which the duplicate data in the List collection needs to be removed. At this time, some students may ask: why not use Set or LinkedHashSet directly? So there is no problem of duplicate data?I have to say that the students who can ask this question are very clever and see the esse ...
Posted by Avendium on Mon, 06 Dec 2021 13:06:45 -0800
Scala, Java 50 programming questions
⚠️ The correctness of the solution is not guaranteed!
1. There are a pair of rabbits. From the third month after birth, a pair of rabbits are born every month. The rabbits grow to another pair of rabbits every month after the third month. If none of the rabbits dies, what is the total number of rabbits per month?
def main(args: Array[Strin ...
Posted by GreyFilm on Mon, 06 Dec 2021 09:13:55 -0800
Springboot+AOP + custom annotation implements operation log and exception log
In our daily work, we often encounter the need to implement the functions of operation log, login log, error log, etc. the young partners who have just joined the company do not know what to do, or the first idea is to write a method to add to the log table in each method in the business code, bu ...
Posted by LonelyPixel on Sun, 05 Dec 2021 22:09:11 -0800
Principle of distributed algorithm
Common generation strategies of distributed ID
The common distributed ID generation strategies are as follows:
Database autoincrement ID.UUID generation.Redis's atomic self increasing mode.Split the database horizontally, and set the initial value and the same self increasing step size.Self increment ID for batch application.Snowflake algorit ...
Posted by formlesstree4 on Sun, 05 Dec 2021 21:39:01 -0800
First Java Web application (configuration of Maven and Tomcat)
How is the website accessed?
1. Enter a domain name and press enter
2. Check whether there is this domain name mapping under the C:\Windows\System32\drivers\etc\host configuration file of this machine;
① Yes: directly return the corresponding IP address. In this address, there are web programs we need to access, which can be accessed directl ...
Posted by ybinds on Sun, 05 Dec 2021 21:37:47 -0800
SpringMVC-part04 data processing and jump
4. Data processing and jump
In the previous section, we learned about controllers and Restful style operations
Mad God says spring mvc03: RestFul and controller
Now let's take a look at spring MVC parameter receiving processing and result jump processing!
4.1 result jump method
4.1.1ModelAndView
Set the ModelAndView object and jump to the ...
Posted by Christoph09 on Sun, 05 Dec 2021 21:04:34 -0800
Spring5 Quick Start [Basic Summary]
1. Spring5
1.1 Introduction
Spring - > brings spring to the software industry!The Spring framework is redesigned based on interface21!Spring concept: Making existing technology easier to use is a hodgepot that integrates existing technology frameworks!Spring is a lightweight framework for IoC and AOP containers. A framework for providing b ...
Posted by rodolp13 on Sun, 05 Dec 2021 21:03:56 -0800
MacBook Air M1 is configured with java development environment Maven + IDEA
MacBook Air M1 is configured with java development environment Maven + IDEA
1. JDK configuration
At present, Zulu JDK supports M1 chip. Download Azul Zulu Builds of OpenJDK
After downloading, click Install and follow the steps. After that, enter java -version on the console
openjdk version "17.0.1" 2021-10-19 LTS
OpenJDK Runtime Environment ...
Posted by slicer123 on Sun, 05 Dec 2021 19:42:49 -0800