Android - Section 9 network programming

1, Network access overview Let's explain and review. We learned Android's UI, various layouts and controls before. In fact, when we work in the future, this UI does not need us to design. A designer will design the UI for us, and then we will restore the UI in the form of code in xml file. For example, the following figure is the data c ...

Posted by stef686 on Wed, 02 Mar 2022 16:53:33 +0100

Mybatis cache details

MyBatis cache 9.1. MyBatis cache understanding Like most persistence layer frameworks, MyBatis also provides L1 and L2 cache support 1. L1 cache: be based on PerpetualCache of HashMap Local cache with storage scope of Session,When Session flush or close After that, the Session All in Cache It will be empty. 2. The mechanism of L2 cache is ...

Posted by onicsoft on Wed, 02 Mar 2022 16:52:25 +0100

Spring framework transaction processing

What is a transaction 1. What is a transaction Transaction refers to a set of sql statements, in which there are multiple sql statements It may be insert, update, select or delete. We hope that these multiple sql statements can succeed or fail. The execution of these sql statements is consistent and executed as a whole. 2. When do y ...

Posted by Awesome Trinity on Wed, 02 Mar 2022 16:50:26 +0100

Spring IOC circular dependency summary

catalogue Spring circular dependency What is circular dependency? Under what circumstances can circular dependencies be handled? Basic introduction and the essence of circular dependency what? The essence of the problem is actually two sum! How to get to getSingleton method Simple circular dependency (no AOP) Call getSingleton(beanName ...

Posted by jimmyt1988 on Wed, 02 Mar 2022 16:25:13 +0100

ShardingSphere sub database and table tutorial

🍅 About the author: Nezha, second runner up of CSDN2021 blog star 🏆, New Star Program mentor ✌, Blog expert 💪 🍅 Nezha's work summary for many years: Java learning route summary, brick movers counter attack Java Architects 🍅 Pay attention to the official account [n. Zha] programming, reply 1024, get Java learning route map, big factory ...

Posted by Bret on Wed, 02 Mar 2022 16:10:50 +0100

Hand tearing algorithm -- LRU cache elimination strategy, asked so often

As we all know, the size of cache is limited! When the cache is full, it requires a cache elimination strategy to determine which data should be cleaned out. There are three common strategies: First In, First Out (FIFO), Least Frequently Used (LFU) and Least Recently Used (LRU). Take a look at this LRU design question on LeetCode: 1.Please de ...

Posted by Topper on Wed, 02 Mar 2022 15:59:16 +0100

Reductive layout of Android layout

The horizontal layout and the vertical layout of cistrant Android are very familiar. Does it seem that the horizontal layout and the vertical layout of cistrant Android are well aligned? In fact, it is an upgraded version of the relative layout, layout_contrainTop_toBottomof: in fact, the upper edge of the current component is aligned wit ...

Posted by jomofee on Wed, 02 Mar 2022 15:47:02 +0100

Java8 new features series Lambda

Reprinted from: Java8 new features series - Lambda - wechat blog Lambda Expressions in Java 8 Lambda expressions are the most popular feature of Java 8. They introduce the concept of functional programming into Java, a completely object-oriented imperative programming language. The working principle of functional programming language is ...

Posted by jazappi on Wed, 02 Mar 2022 15:14:40 +0100

2022Java learning notes 79 (network programming: TCP communication, TCP communication: multiple client messages [key points], tracking client online and offline functions, thread pool optimization)

2022Java learning notes 79 (network programming: TCP communication, TCP communication: multiple client messages [key points], tracking client online and offline functions, thread pool optimization) 1, TCP communication quick start TCP protocol review: 1. TCP is a connection oriented, secure and reliable data transmission protocol 2. Before ...

Posted by RyanDev on Wed, 02 Mar 2022 14:04:39 +0100

Docker Compose of docker re learning series

Why do we need Docker Compose? Isn't it annoying to start containers one by one like this? Can you write a script to start the corresponding containers in order of dependency? ----Docker compose it's coming Docker Compose brief introduction Compose project is the official open source project of Docker, which is responsible for the ...

Posted by Adam W on Wed, 02 Mar 2022 13:12:11 +0100