Zero foundation, Alibaba technical officer private MySQL notes sharing

set password for 'user name'@'IP address' = Password('New password'); Note: the data related to user permissions are saved in the user table of mysql database, so you can also operate them directly (not recommended) I'm tired after watching for so long. Take a break for 10 seconds and continue to look down 4, Authority management mysql h ...

Posted by thedualmind on Wed, 22 Dec 2021 17:30:01 +0100

Interpretation of source code design of ziplist, quicklist and listpack

Inspiration from ziplost to quicklist and then listpack When introducing Redis's optimized design of data structure to improve memory utilization, it mentioned that compressed list (ziplost) can be used to save data. So now you should also know that the biggest feature of ziplost is that it is designed as a memory compact data structure, occup ...

Posted by kubak on Wed, 22 Dec 2021 13:50:48 +0100

Java interview fundamentals Part 7 of java basic syntax: abstract classes and interfaces, the latest tutorial of Java Han Shunping

3. Alibaba code specification stipulates that methods and attributes in the interface should not be decorated with any symbols to keep the code concise Implement multiple interfaces Sometimes we need to make a class inherit from multiple parent classes at the same time This is achieved in some programming languages through multiple inherita ...

Posted by mtorbin on Wed, 22 Dec 2021 02:06:02 +0100

Spring Security Learning (Xi, spring MVC interview questions often asked 2020)

Spring social introduced in previous blogs encapsulates third-party applications, goes to service providers and obtains user information through OAuth protocol. Here we need to complete the logic development of the service provider, so we need to use spring security OAuth Using spring security OAuth, we can quickly build the logic of the ser ...

Posted by Johan Beijar on Tue, 21 Dec 2021 22:48:34 +0100

[Methods of Paging Query for JVM 2,000,000 Data and Its Optimizations

In the Incremental mode l, each collection process is paused twice, and the second time is slightly longer. For the first time, simply query the surviving object from root. The second time it is used to examine the survivors in detail. The whole process is as follows: * stop all application threads; do the initial mark; resume all application ...

Posted by scraptoft on Tue, 21 Dec 2021 17:52:48 +0100

Is notify() really a random wake-up?

Wake up mechanism of notify() preface As everyone who has learned java knows, when learning concurrent multithreading, we have a notify() method. At that time, when the blogger was learning, he said that notify() randomly wakes up a waiting thread and obtains a lock. I believe many small partners are the same as bloggers, but is this re ...

Posted by bpgillett on Tue, 21 Dec 2021 14:19:19 +0100

For Java time complexity and space complexity, Alibaba innovated and released the new high concurrency classic

Time complexity mainly measures the running speed of an algorithm, while space complexity mainly measures the additional space required by an algorithm. In the early days of computer development, the storage capacity of computer was very small. So I care about the complexity of space. However, with the rapid development of computer industry, ...

Posted by dreamline on Tue, 21 Dec 2021 07:37:21 +0100

Java8 Stream and lambda usage

Stream It is used to perform various operations and operations on the data in the collection, such as filtering, sorting, mapping... Finally get the result The collection focuses on the storage of data, and the Stream stream focuses on the operation and operation of the data stored in the collection Use steps Gets the object of a Stream s ...

Posted by dpluth on Tue, 21 Dec 2021 07:08:42 +0100

springboot introductory tutorial, Java written test questions, programming questions

It mainly acts on the DAO interface and can automatically generate the implementation class of the interface. 8: @MapperScan It is mainly used on the startup class to generate the implementation class of DAO interface. If there are many DAO interfaces, it is recommended to use @ MapperScan annotation, such as @ MapperScan("com.example. ...

Posted by saidbakr on Tue, 21 Dec 2021 06:19:41 +0100

Java parsing or generating xml strings of various methods, a text tells you, java written interview BAT

The following is an example of parsing a string, which you can refer to: public static void main(String[] args) throws Exception { //Parses the given String text into an XML document and returns the newly created document org.dom4j.Document document = DocumentHelper.parseText(xmlString); //Get the root node, in thi ...

Posted by Kibit on Tue, 21 Dec 2021 01:27:24 +0100