Binder Subsystem for Android System

Today, let's take a look at Binder, a subsystem of the Android system.Let's start with the Binder subsystem, which is one of the methods used for interprocess communication in Android systems.So why learn the binder system?With the binder subsystem in hand, we can have a good understanding of how Android system processes communicate with each ...

Posted by phpdeveloper82 on Mon, 16 Sep 2019 18:25:02 -0700

11 Points Make Your Spring Boot Start Faster

Preface OpenJDK 11 is used. java --version openjdk 11.0.1 2018-10-16 OpenJDK Runtime Environment 18.9 (build 11.0.1+13) OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode) You can run the benchmark as follows. It may take some time to run, and all the tests will be executed below. ./mvnw clean package (cd benchmarks/; java -jar target ...

Posted by ronniebrown on Thu, 12 Sep 2019 00:20:11 -0700

How can I get rid of if-else parameter checking?

background In development, it is often necessary to write some field validation code, such as non-empty, length limitations, mailbox format validation, etc., which results in code full of if-else, which is not only quite lengthy, but also crazy. hibernate validator(Official Documents ) provides a set of relatively complete and convenient veri ...

Posted by jim_de_bo on Wed, 11 Sep 2019 09:43:13 -0700

java high concurrency series 9

JAVA LockSupport Tool Class LockSupport Common methods in LockSupport LockSupport LockSupport is the basic thread blocking primitive used to create locks and other synchronization classes. The LockSupport class can block the current thread and ...

Posted by roneill on Mon, 09 Sep 2019 01:30:36 -0700

Abstract Factory Model of 23 Design Patterns in GOF

Abstract factory pattern Used to produce all products of different product families. (There is nothing we can do to add new products; support the increase of product family) Abstract factory pattern is an upgraded version of factory method pattern. ...

Posted by Phate on Sat, 07 Sep 2019 04:08:49 -0700

Hibernate Learning Notes: Level 2 Cache

The table for this example query is Hibernate Learning Notes (6): Many-to-One Mapping and One-to-Many Mapping Table used. Test program CacheDemo.java: package com.hibernate.cache; import org.hibernate.SessionFactory; import org.hibernate.Trans ...

Posted by jponte on Fri, 06 Sep 2019 02:46:19 -0700

An Introduction to Spring

Working Principle of Spring Partners who have contacted Spring know that it is a free and open source framework, and it is often used in today's enterprises because of its great advantages in the enterprise and projects are basically inseparable ...

Posted by john_6767 on Tue, 27 Aug 2019 04:34:02 -0700

Hibernate Validator custom validation

Preface Under my own exploration, I have a preliminary understanding of Hibernate Validator. We can use existing constraints to restrict fields, reduce the occurrence of no code, and make the code more concise.However, in recent practical use, there have been some problems that can not be handled by the framework. For example, when a third part ...

Posted by redarrow on Thu, 22 Aug 2019 20:14:21 -0700

Hibernate handles associations between tables (one-to-one)

Code for this chapter: https://github.com/MarsOu1998/ForeignKeyHibernate 1. Create connections between PO s In Hibernate framework, PO object relational layer is registered by mapping file and configuration file, and some operations on database can ...

Posted by vincente on Thu, 22 Aug 2019 00:09:00 -0700

Learning Log-2019/08/16

Introduction to Hibernate Download Hibernate development environment Hibernate5.0.7https://sourceforge.net/projects/hibernate/files/hibernate-orm/5.0.7.Final/ decompression documentation: documentation developed by Hibernate lib: Hibernate de ...

Posted by Braclayrab on Fri, 16 Aug 2019 07:09:46 -0700