Build a RESTful API using SpringBoot

background Is such a simple thing worth writing an article? When we started a project last year, because more and more people participated in it, we soon exposed a problem: everyone has his own set of (code) style. Considering the cooperative operation of the team, it is proposed to formulate relevant specifications to make everyone's pace con ...

Posted by mindrage00 on Thu, 02 Dec 2021 15:36:42 -0800

JUC learning - blocking queue 1

6,PriorityBlockingQueue An unbounded blocking queue that supports prioritization. The elements entering the queue will be sorted according to priority. public class PriorityBlockingQueue<E> extends AbstractQueue<E> implements BlockingQueue<E>, java.io.Serializable The unbounded priority blocking queue uses an array to ...

Posted by paulnaj on Thu, 02 Dec 2021 13:51:32 -0800

Rxjava thread switching principle

preface Rxjava can easily switch threads, so how does rxjava switch threads? Read this article to learn how rxjava performs thread switching and the impact of thread switching. A simple code: Observable.create(new ObservableOnSubscribe<String>() { @Override public void subscribe(ObservableEmitter<String> e) throws Excep ...

Posted by Ruchi on Thu, 02 Dec 2021 13:31:04 -0800

Fundamentals of network programming

Basic knowledge Client: refers to the browser or custom client. Server: like Tomcat server or custom client. TCP/IP TCP: transport layer protocol. IP: network layer protocol. TCP/UDP Difference between TCP and UDP TCP use case: used for RPC interface calls, sending e-mail and other things that need reliable transmission. UDP use case: used ...

Posted by pureDesi on Thu, 02 Dec 2021 12:10:35 -0800

java annotations and reflection

Crazy God learning notes on this site 1, Annotation 1. What is annotation Annotation is a concept introduced from JDK 5.0 eg: @ override overriding annotation 1. It is not the procedure itself that explains the procedure ()2. It can be read by other programsNot necessary3. Format: @ comment + comment name, and some parameter values can ...

Posted by sriphp on Thu, 02 Dec 2021 10:56:03 -0800

Java description LeetCode, 45. Jump Game II jump game II

Hello everyone, I'm hehaige and focus on the back end. If I can, I want to be a code designer instead of an ordinary coder to witness the growth of hehaige. Your comments and praise are my biggest driving force. If you have any mistakes, please don't hesitate to comment. Thank you very much. Let's support the original! If there is a clerical er ...

Posted by Eratimus on Thu, 02 Dec 2021 10:42:41 -0800

Two Wrong Writings for Iterator Traversal Collection [java]

Two Writing Errors for Iterator Traversal Sets Error Mode One: eg: package iterator; import java.util.Collection; import java.util.ArrayList; import java.util.Iterator; public class IteratorDemo5 { public static void main(String[] args) { Collection c1 = new ArrayList(); c1.add(1234); c1.add("abc"); c1.a ...

Posted by Rayne on Thu, 02 Dec 2021 10:33:21 -0800

Summary of how SpringBoot registers components with containers

Catalogue of Series Articles Spring Boot is a completely new open source framework based on Spring. It has all the best features of Spring, and is simpler to use, more versatile, and more stable and robust in performance. Spring Boot provides a number of out-of-the-box dependent modules, such as spring-boot-starter-redis, spring-boot-starter-d ...

Posted by The Midnighter on Wed, 01 Dec 2021 20:37:33 -0800

Use it out of the box and look at other people's microservice permission solution. It's called an elegant solution

Pre knowledge We will use Nacos as the registration center, Gateway as the Gateway, and the micro service permission solution provided by SA token. This solution is based on the previous solution Application Architecture The idea is similar to the previous scheme. The authentication service is responsible for login processing, the ga ...

Posted by treppers on Wed, 01 Dec 2021 20:22:18 -0800

JAVA - Vue and comprehensive case

1. Vue advanced usage 1.1. Custom components After learning the Element component, we will find that the component is actually a custom label. For example, the encapsulation of. In essence, a component is a reusable Vue instance with a name, which can be defined by ourselves. Define format Vue.component(Component name, { props:Prope ...

Posted by DJH on Wed, 01 Dec 2021 19:51:28 -0800