Best practices for spring boot profiles, privacy data desensitization!

The company is investigating the internal data account leakage these days. The reason is that it is found that some interns xiaocute secretly transmitted the source code to GitHub with their account and password, resulting in the leakage of core data. The children still haven't been severely beaten by the society. The consequences of this can b ...

Posted by ranjita on Tue, 21 Dec 2021 00:57:07 +0100

Java collection interview questions sorting, [performance optimization practice]

Differences between HashMap and ConcurrentHashMap ConcurrentHashMap divides the whole bucket array into segments, and then protects each segment with a lock lock. Compared with the synchronized lock of HashTable, the granularity of the lock is finer and the concurrency performance is better. However, HashMap has no lock mechanism and is not t ...

Posted by Matt Kindig on Mon, 20 Dec 2021 22:27:08 +0100

Why do you always use bad design patterns?

I often see some articles on design patterns, write a lot of content, and give some "vivid" examples. But it may have the same problem as the Head First design pattern: after reading it, I will, but it doesn't seem to be useful? Or hard cover design pattern. ​ Take a few extreme examples I've seen: Two fields, and a Builder3 if ...

Posted by Jimmy79 on Mon, 20 Dec 2021 17:54:22 +0100

Comprehensive analysis of advanced core knowledge in Java, 10000 words long text

"a""b" 127.0.0.1:6379> lset list1 0 v OK 127.0.0.1:6379> lrange list1 0 -1"v""b" - lrm : Delete an element and return the number of deleted elements ```java 127.0.0.1:6379> lrange list1 0 -1 1) "b" 2) "b" 3) "a" 4) "b" 127.0.0.1:6379> lrange list1 0 -1 1) "a" 2) "b" lindex: returns the element at the specified position in ...

Posted by MilesWilson on Mon, 20 Dec 2021 15:24:18 +0100

Eureka registry

<!--Spring Boot--> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.6.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <!--eureka--> <dependency&g ...

Posted by TodManPlaa on Sun, 19 Dec 2021 08:29:54 +0100

Detailed explanation of Java Web paging function, those routines of Java interview in recent years

Usage scenario: when the amount of data fetched reaches a certain level, paging is required for data segmentation. When we do not use the paging function, we will face many problems: Problems with the client: if too much data is displayed on the same page, the user experience will be seriously affected because the page is too long, it is ...

Posted by Desertwar on Sun, 19 Dec 2021 07:00:52 +0100

Cloud - Solve Distributed Transactions with Message Queuing, Summarize Practical Interviews in 2021 Java

Core concepts The important components are described below: Broker: The Message Queuing service process, which consists of two parts: Exchange and Queue. (Post Office / Express) Exchange: A message queue switch that routes messages to a queue according to certain rules and cares about messages. (courier in post office/courier in express compa ...

Posted by irishred8575 on Sat, 18 Dec 2021 21:31:47 +0100

10592 words, 475 lines, byte beating interview questions and answers Java

<property name="password">123456</property> <property name="schemas">ITCAST</property> 123456 ITCAST true ``` After configuration, restart MyCat service; Description of attribute meaning: checkSQLschema When the value is set to true Time, If we execute the statement"select * from test01.user ;" Statement time, MyC ...

Posted by slightlyeskew on Sat, 18 Dec 2021 16:12:06 +0100

Java advanced: Java file - & - IO, in-depth interview with linux kernel architecture

fis.close(); } /* * Method to realize file replication * 1. Byte stream reads and writes a single byte */ public static void copy_1(File src,File desc)throws IOException{ FileInputStream fis = new FileInputStream(src); FileOutputStream fos = new FileOutputStream(desc); int len = 0 ; while((len = fis.read())!=-1){ ...

Posted by ryanbutler on Sat, 18 Dec 2021 15:35:23 +0100

Strategy mode is the cornerstone of realizing a variety of marketing methods

Hello everyone, today is cloudy. There are 3816 lightning flashes in Hangzhou. Take a closer look, it originally consists of four big characters: design mode! Today is another day of design mode. What Hong Jue wants to talk about today is strategy mode. Policy pattern is a kind of behavioral pattern. This kind of design pattern pays special a ...

Posted by sumeet on Sat, 18 Dec 2021 13:25:26 +0100