Spring Boot tutorial - swagger UI

Spring Boot tutorial - swagger UI 1. What is Swagger? Swagger Gamma The goal is to define a standard, language independent interface for REST APIs, so that people and computers can discover and understand the functions of various services without seeing the source code, documents or network traffic detection. When services are defined by swagge ...

Posted on Sat, 23 May 2020 09:55:48 -0700 by YorkshireSteve

JAVA Concurrent Programming Introduction, thinking about the realization philosophy behind synchronous lock

Multithreading is similar to preemptive multitasking processing in concept. The reasonable use of threads can improve the processing ability of the program, but it also brings disadvantages. For shared variable access, there will be security problems. Here is an example of multi-threaded access to shared variables: public class ThreadSafty { ...

Posted on Sat, 23 May 2020 02:53:17 -0700 by downfall

New features of JDK 1.8 -- functional interface

In the last article, we introduced the following new features of JDK 1.8. 1.Lambda expression 2. Method reference 3. Functional interface 4. Default method 5.Stream 6.Optional 7. Nansharm JavaScript engine 8. New date time API 9.Base64 Before that, I learned the first two Lambda expressions, method references, and this article is about function ...

Posted on Fri, 22 May 2020 05:43:03 -0700 by False

Function test of ActiveMQ high availability + load balancing cluster

1. Basic function test ActiveMQ is a JMS Provider implementation that fully supports the JMS 1.1 and J2EE 1.4 specifications. The full name of JMS is Java Message Service, that is, Java Message Service. It is mainly used to deliver messages between producers and consumers. Producers are responsible for generating messages while consumers are re ...

Posted on Fri, 22 May 2020 03:07:54 -0700 by naitsir

Java.lang.StringWhat exactly did the + operation do?

Author: Pz https://www.cnblogs.com/panzi/p/11956782.html In previous interviews, String was frequently visited. Here are a few general points of knowledge: String Constant Pool new String() The difference between ==and equals native methodString.intern() Although the interview was generally correct, I couldn't answer one of the que ...

Posted on Thu, 21 May 2020 19:54:34 -0700 by phpretard

New feature of JDK 1.8 -- method reference

In the last article, we introduced the following new features of JDK 1.8. 1.Lambda expression 2. Method reference 3. Functional interface 4. Default method 5.Stream 6.Optional 7. Nansharm JavaScript engine 8. New date time API 9.Base64 And learned the most important features of JDK 1.8-- Lambda expression , a reference to this learning method. ...

Posted on Thu, 21 May 2020 09:22:27 -0700 by chick3n

Talk about OffsetCommitPolicy for debezium

order This article mainly studies the OffsetCommitPolicy of debezium. OffsetCommitPolicy debezium-v1.1.1.Final/debezium-api/src/main/java/io/debezium/engine/spi/OffsetCommitPolicy.java @Incubating @FunctionalInterface public interface OffsetCommitPolicy { boolean performCommit(long numberOfMessagesSinceLastCommit, Duration timeSinceLastCom ...

Posted on Thu, 21 May 2020 09:14:00 -0700 by Gente

java application: send mail to user registered mailbox

Implement functionality Forget password, successful registration, etc. Send authentication code information or registration information to the user. operation flow Forget password: 1. Verify that the mailbox has been registered; Send verification code to mailbox; 3. Verify that the verification code is correct; 4. Reset the password; I'm going ...

Posted on Wed, 20 May 2020 09:19:31 -0700 by nikes90

Custom ClassLoader -- third party jar packages can be loaded

package com.classloader.util; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.net.URLClassLoader; import java.net.URLStreamHandlerFactory; import java.security.CodeSource; import java.security.PermissionCollection; import java.util.Enumeration; import java.util.jar.Manifest; ...

Posted on Wed, 20 May 2020 08:52:11 -0700 by bumbar

Emerging Learning Spring MVC

Preface Only a bare head can be strong. Text has been included in my GitHub featured article. Welcome to Star: https://github.com/ZhongFuCheng3y/3y This Spring MVC has been pushed for a long time and has been very, very busy this time because of the integration of the system.This weekend I returned to the article Corporate Liver earlier. If ...

Posted on Tue, 19 May 2020 18:52:21 -0700 by Andrei