Go1.18 new feature: deprecate strings Title Method, change a new pit!
Hello, I'm fried fish.I've been watching go1 18. When releasing notes, I found that the Title Method of strings and bytes standard library was Deprecated. Why?Today's article will be read by fried fish and everyone.introduceHere, take the strings standard library as an example, strings The title method maps Unicode letters at the beginning of a ...
Added by Warmach on Wed, 16 Feb 2022 06:42:58 +0200
Android 12 "fatal" crash solution
Author: Lin Zuojian
UC kernel found a fatal crash on Android 12. About 10% of users will encounter this problem during cold start, which seriously affects the release of UC kernel. Its call stack is as follows:
10-12 19:03:21.461 1038 2723 I id.AlipayGphon: Rejecting re-init on previously-failed class java.lang.Class<com.uc.webkit.impl ...
Added by pbdude23 on Wed, 16 Feb 2022 05:50:36 +0200
Hyperledger Fabric 2.x custom smart contract
1, Explain
In order to continuously update information and manage the ledger (write transactions, query, etc.), the blockchain network has introduced smart contracts to access and control the ledger; Smart contract is called chain code in Fabric, which is the business logic of blockchain application.
This article shares how to use the Java ...
Added by Ken2k7 on Wed, 16 Feb 2022 05:39:53 +0200
Nacos of Spring Cloud Alibaba
Introduction to Nacos
Nacos is a component of Spring Cloud AlibabaFull name: Dynamic Naming and Configuration ServiceIn a simple sentence: Nacos=Eureka+Config+Bus
Nacos installation
After downloading, directly run startup.exe under the bin directory CMD, and then access http://ip:8848/nacos Login, default account password: NacosStandalon ...
Added by juma929 on Wed, 16 Feb 2022 05:33:39 +0200
RocketMQ grayscale of full link grayscale
Introduction: This article will be based on the "how to obtain the same enterprise level full link grayscale capability in 20 minutes" introduced last time Based on the scenario in, this paper further introduces the full link gray scale of the message scenario.Author: Yi ZhanWe have described how to control the traffic of the full lin ...
Added by madhouse92 on Wed, 16 Feb 2022 04:28:52 +0200
Design mode [15] - learn the responsibility chain mode from the approval process
I've come to the responsibility chain mode. My guest, listen to my nonsense
What is the responsibility chain model
Responsibility chain model is a design model. In the responsibility chain model, many objects are connected by each object's reference to its next family to form a chain. Requests are passed along the chain until an object i ...
Added by Birdfeed on Wed, 16 Feb 2022 03:16:17 +0200
Lombok introduction to mastery
1, Preface
The use of Lombok is controversial. The author strongly recommends Lombok, and even believes that some common functions should be directly integrated in the form of JDK.
It is meaningless to write a bunch of Set/Get methods in the process of building entity classes; The toString method that inherits the Object class by default is o ...
Added by lalov1 on Wed, 16 Feb 2022 03:04:05 +0200
. NET advanced 06 async asynchronous, thread multithreading 4
. NET advanced 06 async asynchronous, thread multithreading 4 Knowledge needs to be accumulated, summarized and precipitated. Thinking and writing are the catalysts for growth
1, Lock
1,lock
2,Interlocked
3,Monitor
4,SpinLock
5,Mutex
6,Semaphore
7,Events
1,AutoResetEvent
2,ManualResetEvent
3,ManualResetEventSlim
8,ReaderWriterLo ...
Added by syacoub on Wed, 16 Feb 2022 01:52:54 +0200
Password encryption and microservice authentication JWT
Password encryption and microservice authentication JWT
##Learning objectives
1. When the user registers, the password of the user in the database is encrypted and stored (using spring security). 2. Use JWT authentication.
1, BCrypt password encryption
Considering the security of any application, the password must not be saved in clear text ...
Added by pouncer on Wed, 16 Feb 2022 01:29:47 +0200
[thread and thread pool] - Java has its own thread pool and core parameters
1, Java's own thread pool:
1.newCachedThreadPool
2.newFixedThreadPool
3.newSingleThreadExecutor
2, Look at an example
public class ThreadPoolDemo {
public static void main(String[] args){
ExecutorService newCachedService1 = Executors.newCachedThreadPool();
ExecutorService newFixedService2 = Executors.newFixedThreadP ...
Added by marmite on Wed, 16 Feb 2022 01:19:57 +0200