Three realms of using dubbo in springboot2

Using dubbo in spring boot is a very simple thing, but the real world is so complex. Today, I use a personal experience of jumping and filling holes to talk about the triple realm of using the higher version of dubbo in spring boot. 1. If the mountain is the mountain, use the official starter It is very simple to integrate spring boot with d ...

Posted on Tue, 10 Dec 2019 06:25:12 -0500 by pjoshi

Learn more about how Netty works

Introduction Previously, I learned NIO and zero copy, IO multiplexing model, Reactor master-slave model. The server manages connections based on the IO model, gets input data, and processes requests based on the threading model. Here's how Netty works. 1. Netty Thread Model The Netty threading model is based on the Reactor master-slave model ...

Posted on Tue, 10 Dec 2019 06:22:09 -0500 by py343

Practical practice of GUI programming in Java

I. project introduction 1. Use Java GUI to draw image interface and set overall layout 2. Write a random number to generate 1-100 random numbers 3. Write a verification class to verify whether the input value of the user is equal to the generated random number and record the number of user guesses. When the user guesses successfully or more tha ...

Posted on Tue, 10 Dec 2019 04:46:02 -0500 by foxden

Android generates a QR code from the url and pastes it on the given base map

It mainly uses the function of generating QR code from com.google.zxing jar package, which needs to be downloaded by itself Direct code public static Bitmap CreateBinaryCodeImageByUrl(String url,Bitmap bottomImg,int drawAtPointX,int drawAtPointY,int binaryCodeImgWidth) { try{ Map<EncodeHintType, String> hints ...

Posted on Tue, 10 Dec 2019 03:58:08 -0500 by keziah

Request forwarding and redirection of spring MVC core technology

I. request forwarding and redirection 1.1 redirect to front page Spring MVC defaults to request forwarding 1. Establishment of spring MVC development environment web.xml configuration <!--Configure front end controller--> <servlet> <servlet-name>springmvc</servlet-name> <servlet-cl ...

Posted on Tue, 10 Dec 2019 03:33:23 -0500 by parkie

Spring Boot is the simplest way to integrate Shiro+JWT

brief introduction At present, most RESTful uses JWT for authorization verification. In Spring Boot, Shiro and JWT can be used for simple permission and authentication verification. There are many holes in the integration with Spring Boot. Combined with their own and common application scenarios, we developed the simplest integration method fas ...

Posted on Tue, 10 Dec 2019 01:24:50 -0500 by paulnaj

Kotlin Core Syntax: Generics

Blog Home Page 1. Generic type parameters 1.1 Generic Functions and Properties Library functions that use collections are generic.Let's look at the definition of the slice function: //public fun type parameter declaration List<Receiver type parameter>.slice(indices: Iterable<Int>): List<Return type type parameter> public fun ...

Posted on Mon, 09 Dec 2019 23:28:24 -0500 by Tekime

What's the difference between notify() and notifyAll()?

Explain two concepts first. Waiting pool: suppose A thread A calls the wait() method of an object, and thread A will release the lock of the object and enter the waiting pool of the object. The threads in the waiting pool will not compete for the lock of the object. Lock pool: only when the lock of an object is acquired can the thread execu ...

Posted on Mon, 09 Dec 2019 22:32:14 -0500 by jamz310

Three kinds of java cycles and precautions

1 package debug; 2 3 public class Demo8 { 4 public static void main(String[] args) { 5 6 //Use for Cycle printing 10 times Java good 7 for(int i=1;i<=10;i++) { 8 System.out.println(i + " Java Good!"); 9 } 10 11 System.out.println("~~~~~~~~~~~~~~~~~~~~~"); 12 ...

Posted on Mon, 09 Dec 2019 19:41:52 -0500 by phpconnect

Introduction to Java concurrency

A brief history of Java concurrency Resource utilization In some cases, a program must wait for an external operation to complete, such as an input operation or an output operation, while the program cannot perform any other work while waiting. Therefore, if another program can run while waiting, the utilization of resources will undoubtedl ...

Posted on Mon, 09 Dec 2019 18:05:15 -0500 by idgeit