Do you really understand reflection?

1. What is reflection 1. First knowledge reflex When I first started to learn reflection, I was confused. This thing is really "abstract mother opens the door to abstract - abstract is home." Why do you need to get the Class object before creating an object? Isn't that unnecessary? Isn't it easier for me to new directly? What is ...

Posted by s2r on Fri, 21 Jan 2022 05:02:53 +0100

My god? It turns out that this is the correct implementation of multithreading

Java Memory Model Thread synchronization Thread synchronization mechanism is a set of data access mechanism suitable for coordinating threads, which can ensure thread safety The thread synchronization mechanism provided by the java platform includes lock, volatile keyword, final keyword, static keyword, and related API s such as obje ...

Posted by Ammar on Tue, 18 Jan 2022 07:27:02 +0100

GitLab comes with CI/CD implementation NET Core application deployment

preface During the two days of continuous integration and delivery, the company considered using the ci/cd provided by gitlab to handle it, and hereby wrote down the whole process steps. 1, Install gitlab This naturally goes without saying 2, Using the docker container to install the gitlab runner component Create a docker - comp ...

Posted by cgchris99 on Tue, 18 Jan 2022 02:24:41 +0100

Explain why Netty is so fast from seven angles? In depth practice of building Dubbo service based on Netty

Netty is a high-performance, asynchronous event driven NIO framework, which is implemented based on the API provided by JAVA NIO. It provides support for TCP, UDP and file transfer. As an asynchronous NIO framework, all IO operations of netty are asynchronous and non blocking. Through the future listener mechanism, users can easily obtain IO ...

Posted by erikwebb on Mon, 17 Jan 2022 15:53:14 +0100

Talk about the current limit in one article

Introduction to current limiting Now when it comes to high availability systems, we will talk about high availability protection methods: caching, degradation and current limiting. This blog will mainly talk about current limiting. Current limit is the abbreviation of Rate Limit, which means that only specified events are allowed to enter the ...

Posted by xymbo on Sat, 15 Jan 2022 03:34:54 +0100

Power node spring framework learning notes - King crane spring integration MyBatis

3, spring integrates MyBatis Official download address Power node spring data Video viewing address https://www.bilibili.com/video/BV1nz4y1d7uy Integrating MyBatis with Spring mainly solves the problem of handing over SqlSessionFactory objects to Spring for management You only need to register the SqlSessionFactoryBean, the object gener ...

Posted by dusty on Fri, 14 Jan 2022 10:14:03 +0100

Software system of takeout platform based on C/S architecture implemented by Qt framework

Takeout platform based on C/S architecture introduction This time, a takeout platform software with C/S architecture is implemented under the Qt framework. The client uses Qt::Widgets and Qt::Network modules, and the server uses Qt::Sql and Qt::Network modules. The application scenario of the system is: one server instance serves multiple cli ...

Posted by xploita on Tue, 11 Jan 2022 14:57:13 +0100

Netty quick start

This article mainly introduces how to learn and know Netty quickly. You can also understand it as learning introduction and quick start. It is strongly recommended that you collect this article for future reference. Netty netty It is a high-performance, elastic and extensible asynchronous event driven network application framework based on NI ...

Posted by coder500 on Mon, 10 Jan 2022 23:36:21 +0100

If you encounter OOM online, how to solve it?

OOM means that there are vulnerabilities in the program, which may be caused by code or JVM parameter configuration. This article talks to readers about how to check after a Java process triggers OOM It is often said that maintaining awe of the production environment and solving problems quickly is also an expression of awe Why OOM? The ...

Posted by salmanshafiq on Mon, 10 Jan 2022 12:36:19 +0100

Is Java parameter passing by value or by reference?

preface First of all, it is clear that method parameters in Java are passed by value. For basic types (int a, long b), values are passed when parameters are passed. For example, if int a = 5, 5 is passed. If it is a reference type, pass the address value pointing to the memory address of the specific object, such as system out. Println (New ob ...

Posted by dshevnock on Thu, 06 Jan 2022 08:18:18 +0100