[java basics] an article to play with you

Hello, freshman rookies are learning java by themselves. If there are mistakes in this article, you are welcome to exchange, correct and discuss, and make progress together 😀😀😀 I Basic overview of polymorphism Polymorphism: multiple forms of things, different forms of the same object at different timesExample: dog = new dog; Anim ...

Posted by Awestruck on Fri, 01 Apr 2022 18:42:06 +0300

Java multithreading -- thread synchronization

Java multithreading Thread synchronization Concurrency: the same object is executed by multiple threadsWhen dealing with multithreading problems, multithreads access the same object, and some threads want to modify the object. At this time, we need thread synchronization. Thread synchronization is actually a waiting mechanism. Multiple thread ...

Posted by law on Fri, 01 Apr 2022 15:09:06 +0300

Supplement: some common methods and summary of the first stage

catalogue pork and Interrupted() methods Exercise 2 Daemon thread Thread status: Example: washing a teapot (multithreading problem) Summary: pork and Interrupted() methods pork: terminate the thread and the following will no longer run. In fact, it is based on the thread state. If it is true, it can be executed down Thread.interru ...

Posted by macinjosh on Fri, 01 Apr 2022 14:26:38 +0300

Attribute configuration principle, startup check, timeout time, number of retries and multiple versions of dubbo configuration

Before that, we briefly introduced dubbo configuration service providers, consumers, management platform and monitoring platform. Next, we will talk about other configurations of dubbo. 1. Configuration strategy 1.1 attribute configuration dubbo can start parameters in JVM, dubboXML and dubbo Properties configure related properties in three ...

Posted by 99degrees on Fri, 01 Apr 2022 04:47:23 +0300

Dubbo delayed exposure, concurrency control, connection control, delayed connection, sticky connection

1. Reference Delayed exposure: http://dubbo.apache.org/zh-cn/docs/user/demos/delay-publish.html Concurrency control: http://dubbo.apache.org/en-us/docs/user/demos/concurrency-control.html Connection control: http://dubbo.apache.org/en-us/docs/user/demos/config-connections.html Delayed connection: http://dubbo.apache.org/en-us/docs/user/demo ...

Posted by mherr170 on Fri, 01 Apr 2022 03:48:56 +0300

Dry goods | how to enter the era of Service Mesh micro service architecture

Today, I want to share with you the specific playing methods of Service Mesh, a new generation of micro service architecture! Today, with the prevalence of micro service architecture, as an Internet technology practitioner, I believe everyone is familiar with the concept of micro service! As for the micro service framework like Spring Cloud, ...

Posted by davieboy on Thu, 31 Mar 2022 21:58:07 +0300

[ES] Elasticsearch participle usage and simple query

Elasticsearch I analysis and analyzer Analysis (just a concept), text analysis is the process of converting the full text into a series of words, also known as word segmentation. Analysis is implemented through an analyzer. You can use the built-in word splitter of Elasticsearch or customize some word splitters yourself. In addition to co ...

Posted by padiwak on Thu, 31 Mar 2022 19:26:56 +0300

Spring Boot e-commerce project 53: order module 2: [foreground: create order] interface; (this interface is complex and contains many contents)

explain: (1) The content of this blog: develop the [front desk: create order] interface; (2) There are many contents in this blog, and we should pay attention to the following points: ● clarify the idea and process of [create order]; ● in order to realize the same service, the specific coding logic may be different; However, with the im ...

Posted by jeffwhite on Thu, 31 Mar 2022 19:09:11 +0300

Source code analysis of apache shiro framework @ RequiresPermissions

1.@RequiresPermissions usage Use annotations on the corresponding methods @RequestMapping("user/list") @RequiresPermissions("user:list") @ResponseBody public Map<String, Object> userList(QueryRequest request, User user) { return super.selectByPageNumSize(request, () -> this.userService.findUserWithDept(user, request)); } Functi ...

Posted by jamest on Thu, 31 Mar 2022 04:57:24 +0300

Android network programming -- Socket easy

Android network programming overview First, understand the following questions: 1. Android system network related API interface 1),java.net.* (standard Java interface) java.net.* Provide networking related classes, including stream, packet socket, internet protocol, common Http processing, etc. For example, create URL s, URLConnection/HTTPU ...

Posted by CircularStopSign on Thu, 31 Mar 2022 04:38:17 +0300