java SPI 03-ServiceLoader jdk Source Parsing

Series Catalog What is spi 01-spi?Getting Started spi 02-spi battle resolution slf4j package conflict problem spi 03-spi jdk for source code parsing spi 04-spi dubbo for source code resolution spi 05-dubbo adaptive extension adaptive expansion spi 06 - Implement SPI framework from scratch spi 07-Automatically generate SPI profile implementatio ...

Posted by frizzo on Thu, 18 Jun 2020 20:26:14 +0200

ContentService simple analysis

ContentService uses the observer mode, and APP registers Uri messages of interest to ContentService through ContentResolver.When the corresponding data changes, ContentResolver calls the notifyChange function to notify ContentService of the corresponding Uri data changes, ContentService queries the corr ...

Posted by anoesis on Thu, 18 Jun 2020 18:22:30 +0200

Spring boot integrates redis to realize message queue -- asynchronous receiving and multithreading sending

1, Publish message to redis 1. Create a new springboot project Create a new redis queue for the springboot project. 2. Introduce dependency The introduction of related dependencies, in which lombok is used, requires the installation of lombok plug-ins. <?xml version="1.0" encoding="UTF-8"?> ...

Posted by sixdollarshirt on Thu, 18 Jun 2020 12:28:50 +0200

hualinux servlet 2.13: ServletRequest interface and its sub interface

catalog 1, Knowledge points 2, Examples 2.1 example 1 obtaining request parameters 2.1.1 code 2.1.2 test results 2.2 example 2 returns the string array corresponding to the request parameter according to the name of the request parameter 2.2.1 in index.jsp Write form 2.2.2 modification Login. ...

Posted by chedong on Thu, 18 Jun 2020 06:37:31 +0200

java basic review common classes

I java.lang Class in package does not need to import package 1. Features:    java.lang Package is the core of Java language, which provides the basic classes in Java. Including basic Object Class, Class class, String Class, basic type wrapper Class, basic math Class and other basic classes. 2. 8 basic types of initialization default va ...

Posted by manamino on Thu, 18 Jun 2020 06:01:02 +0200

Android Binder-framework->native(transact->onTransact)

Previous Binder mRemote's Past and Present PowerManger.isScreenOnThe calling process for () has already been called BinderProxy.transact(); /frameworks/base/core/java/android/os/Binder.java ------> Binder.java->BinderProxy public boolean transact(int code, Parcel data, Parcel reply, int flags) throws Remote ...

Posted by Ajita on Thu, 18 Jun 2020 03:26:45 +0200

Qiniu cloud image upload, configure secondary domain name, support https.

Write in front There are not a few articles about qiniu cloud uploading pictures, but they just use the test domain name given by qiniu cloud. As a webmaster, after upgrading his domain name to https, the obsessive-compulsive patients are not allowed to have the three words of insecurity in the brow ...

Posted by Salis on Wed, 17 Jun 2020 08:52:21 +0200

[Java] http connection using agent (example of integrating Alibaba cloud SMS service in Intranet environment)

1. Problem description I do project services: start in the Intranet environment, all links related to the Internet need to go through transparent agent.Alibaba cloud sdk: encapsulate all operations related to http. We can't configure HTTP related settings. To solve the problem 1: how can intranet serv ...

Posted by Simmo on Wed, 17 Jun 2020 07:11:50 +0200

Design pattern (13): observer pattern

1. Definition When there is a one to many mapping relationship between objects, in order to detect the change of an object, all objects that depend on the object can be notified in time to make changes in response. This mode is called observer mode. 2. Advantages The observer and the observed are ...

Posted by sevenmenkes on Wed, 17 Jun 2020 07:07:39 +0200

Java business verification tool implementation

1, Background In our daily interface development process, we may have to face some slightly more complex business logic code writing. Before executing the real business logic, we often need to carry out a series of pre verification work, which can be divided into parameter validity verification and business data verification. Parameter validity ...

Posted by mahenderp on Wed, 17 Jun 2020 04:34:10 +0200