fucking great! The index in MySQL-8-0 - can be hidden

MySQL 8.0 has been released for a long time, but everyone may stay at 5.7.0 x. Even older. In fact, MySQL 8.0 has added many heavy new features, such as "hidden index" or "invisible index" introduced by the stack leader today. What the hell is a hidden index? Hide index literally means to hide the index, that is, invisible ...

Posted by dsp77 on Sun, 30 Jan 2022 02:57:19 +0100

How to serialize Java objects? Take a look at these two methods!

Why do Java objects need to be serialized Serialization can convert objects into binary streams, and objects can be easily transmitted and saved in the network. How to implement serialization Implement Serializable interfaceImplement Externalizable interface **The difference between the two interfaces is: * * the Serializable interface wi ...

Posted by turdferguson on Sun, 30 Jan 2022 00:41:18 +0100

Gold 3: rain and dew - don't let your thread starve to death in the competition

Welcome to< Concurrent King class >, this article is the 13th in this series. In the last article, we introduced several strategies to avoid deadlock. Although deadlock is notorious, in concurrent programming, in addition to deadlock, there are some equally important thread activity issues that deserve attention. Their popularity is not ...

Posted by php_novice2007 on Sun, 30 Jan 2022 00:21:20 +0100

Jianzhi Offer interview question: 09 rebuild binary tree

The algorithm is not the hard core "Nine Yang Sutra" in Jin Yong's martial arts novels, nor the lightweight "Lingbo micro step" ", which is the basic skill of programmers, just as people who practice martial arts need to take a horse step. Whether the Kung Fu is good or not depends on whether the horse step is not solid ...

Posted by icedude on Sat, 29 Jan 2022 23:58:27 +0100

How to quickly import a huge file of 30G hundreds of millions of data into the production environment? (Java)

If you were given a huge file containing 100 million lines of data, and you could convert the data into the production database within one week, how would you operate? The above problem is that little black brother received a real business demand some time ago and migrated the historical data of an old system to the new production system throu ...

Posted by fourlincoln10 on Sat, 29 Jan 2022 23:41:36 +0100

Assignment between entity objects -- use of BeanUtils

Entity objects transfer values to each other. For example, assigning the value of VO object to entity object is a common function in the code. It is troublesome to assign values to each other through get and set. The operation can be easily completed with the help of tool class BeanUtils. BeanUtils dependent package import BeanUtils is a memb ...

Posted by 1042 on Sat, 29 Jan 2022 20:31:54 +0100

Talk about design mode: the embodiment of builder mode in jdk. What is the difference between it and factory mode?

Recommended reading: This set of 40K+star learning notes on Github can help you handle more than 95% of Java interviews It's no exaggeration to say that this SpringBoot study guide can solve 98% of the problems you encounter The most comprehensive test questions are fresh: 70 + algorithm questions, nearly 30 kinds of knowledge points often ...

Posted by herod1 on Sat, 29 Jan 2022 18:33:25 +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

I integrated the best Java tutorial design pattern command pattern on Github into a PDF document

preface Today, in the process of interviewing others, I asked about the design mode. He said command mode, what!! I haven't heard of it. I can only pretend to be calm, ask him, and quickly turn over the book when I come back. Command mode Daily endorsement: Command Pattern is a data-driven design pattern, which belongs to behavioral ...

Posted by MishieMoo on Sat, 29 Jan 2022 10:03:54 +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