How to build an Apache APIs IX plug-in from 0 to 1 for back-end novices
In the past few months, community users have added many plug-ins to Apache apisid, enriching the ecosystem of Apache apisid. From the perspective of users, the emergence of more diversified plug-ins is undoubtedly a good thing. On the basis of improving the high performance and low latency of Apache APISIX, they meet users' more expectations fo ...
Added by Griven on Wed, 16 Feb 2022 06:31:38 +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
[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
SpringBoot project initialization
catalogue
1. Create the working directory structure and modify it to yml file.
2. Unified web return object R type.
3. Configure Swagger.
4. Create a custom exception class:
5. Streamline the exception message returned to the front end:
6. Database and tomcat server configuration:
1. Configure tomcat server
2. Configure mySQL
3. Config ...
Added by fredi_bieging on Tue, 15 Feb 2022 15:18:28 +0200
Ten minutes take you to understand multithreading - multithreaded teamwork: synchronous control
Multithreaded teamwork: synchronous control
Synchronization control is an essential means for concurrent programs. The previously introduced keyword synchronized is one of the simplest control methods, which determines whether a thread can access critical zone resources. At the same time, object Wait() method and object The notify () method pl ...
Added by mindrage00 on Tue, 15 Feb 2022 14:51:09 +0200
JUC study notes
JUC concurrent programming
What is JUC It refers to the abbreviation of these three packages in java
Small knowledge review
A process can have multiple threads, at least one java has two threads by default
main threadGC thread java itself cannot start the thread. It calls the local native method 6 states of threads public enum ...
Added by Duke555 on Tue, 15 Feb 2022 10:56:44 +0200
C + + Beginner Level -- classes and objects (Part 2)
[write before]
This article is a conclusion and supplement to classes and objects
1, On constructors
💦 Constructor body assignment
❓ Export initialization list ❔
class A
{
public:
A(int a = 0)
{
_a = a;
}
private:
int _a;
};
class B
{
private:
int _b = 1;
A _aa;
};
int main()
{
B b;
return 0;
}
📝 explain
For B, if ...
Added by The_Black_Knight on Tue, 15 Feb 2022 09:33:39 +0200
C + + classes and objects
Process oriented and object-oriented
Process oriented: focus on the process of problem solving, and gradually solve the problem through function call. Object oriented: focus on the objects involved in the problem, split one thing into different objects, and solve the problem by the interaction between objects.
Class introduction
Com ...
Added by McChicken on Tue, 15 Feb 2022 08:38:48 +0200
ArrayList cannot add, delete or modify elements with foreach
1, Fail fast
When traversing a collection object with an iterator, if the contents of the collection object are modified (added, deleted, modified) during the traversal, an exception will be thrown ConcurrentModificationException.
one ️⃣ Principle: the iterator directly accesses the contents of the collection during traversal, and uses a mod ...
Added by anhedonia on Tue, 15 Feb 2022 07:36:43 +0200
ch2 setting API -- creating distributed applications using go gin
Catalogue of series articles
Chapter I gin preliminary understanding Chapter 2 setting API
Note:
The series of articles are learning notes corresponding to the original English books mentioned aboveRelated to their own practice code, including comments, on my gitee Welcome, starAll contents are allowed to be reproduced. If the cop ...
Added by dandare on Tue, 15 Feb 2022 07:09:28 +0200