Android App startup

In recent projects, the function of startup and self startup is useful. Here is a summary for everyone to learn and discuss! Actual combat drill Test mobile phone: Hongmi mobile phone Redmi 6A Android version 9 Huawei mobile phone DUA-AL00 Android version 8.1.0 Xiaomi tablet MI PAD 4 Android version 8.1.0 The above models have been tested ...

Added by sherrilljjj on Wed, 09 Mar 2022 05:29:31 +0200

Resolve the response body(). String() cannot read multiple times

Project scenario: Recently, the requirement of the project is to obtain a new token if the token fails when requesting the interface, and finally use the new token to request the original requested interface. So here we will use the response Interceptor, which is used in my project EasyHttp , is the encapsulation of okhttp. You can have a look ...

Added by ralphuk100 on Wed, 09 Mar 2022 05:28:36 +0200

Write a lottery function in Java. It's so beautiful ~!

summaryIn project development, there are often the needs of marketing activities such as lucky draw, such as integral turntable, scratch music, slot machine and so on. In fact, the implementation method of the background is the same. This paper introduces a common implementation method of lucky draw.The whole lottery process includes the follow ...

Added by new2phpcode on Wed, 09 Mar 2022 05:03:57 +0200

Stop asking for WiFi password. HMS Core unified code scanning service enables mobile phones to connect to the Internet with one click

Modern life is inseparable from the Internet. In restaurants, shopping malls and other public places, mobile phone WiFi connection has always been a high-frequency use scenario. Although there are more and more free WiFi in public places, the process of network connection is very troublesome. Some need to open the web page to register or click ...

Added by evilcoder on Wed, 09 Mar 2022 04:27:15 +0200

Reading Flink source code and talking about design: clean architecture in FileSystemConnector

This article was first published in Floating finch language:https://www.yuque.com/17singeditiondateremarks1.02022.3.8Article launchThis paper analyzes the code based on Flink 1.14.0. PrefaceA while ago, I encountered a strange phenomenon in production: the full-scale operation cannot be carried out normally, and the log is full of Java util. co ...

Added by nyfael on Wed, 09 Mar 2022 02:03:12 +0200

Spring Boot integrates Elasticsearch

๐Ÿ“ข๐Ÿ“ข๐Ÿ“ข๐Ÿ“ฃ๐Ÿ“ฃ๐Ÿ“ฃ Hello! Hello, everyone. I'm [one heart classmate], a highly motivated [Java domain blogger]! ๐Ÿ˜œ๐Ÿ˜œ๐Ÿ˜œ โœจ Writing style of [one heart students]: I like to explain every knowledge point in [easy to understand] writing, rather than using [tall and tall] official statement. โœจ The field of the blog is the learning of back-end te ...

Added by fdost on Wed, 09 Mar 2022 00:48:09 +0200

[Java] functional interface

Chapter I functional interface 1.1 concept Functional interface in java refers to an interface with only one abstract method Functional interface, that is, the interface suitable for functional programming scenarios. The embodiment of functional programming in java is Lambda, so functional interface is the interface that can be used by L ...

Added by podja on Tue, 08 Mar 2022 23:41:19 +0200

Automatic configuration of spring boot web application

Automatic configuration of web application As analyzed in previous articles, @ SpringBootApplication will use the @ Import annotation to introduce AutoConfigurationImportSelector AutoConfigurationImportSelector will return the autoconfiguration class to be loaded through the spi mechanism These include dispatcher servlet autoconfiguration and ...

Added by getgray on Tue, 08 Mar 2022 22:57:36 +0200

Spring Boot series: Vue + Spring Boot + websocket to push the front and back messages

catalogue 1. Demand 2. Principle 2.1 handshake agreement: 2.2 advantages 3. Steps 3.1 backend springboot integration websocket 3.2 create a new configuration class and enable WebSocket support 3.3 create a new WebSocketServer server 3.4 front end 3.5 write the access interface to imitate the message push of the server 3.6 object data ...

Added by paulsiew2 on Tue, 08 Mar 2022 22:35:54 +0200

The path to becoming a God

Preparatory knowledge What is java? java is a high-level programming language launched by Sun company in 1995. It is a computer language. People can use the programming language to give instructions to the computer and let the computer complete the functions that people need. What can java do? java can write desktop applications, Web applic ...

Added by jej1216 on Tue, 08 Mar 2022 21:56:12 +0200