The magic of strong and weak references in java

Preface Under what circumstances might ThreadLocal have a memory leak?If you want to understand the context of this problem, it is essential to look at the source code. After looking at the source code, you find that static class Entry extends WeakReference <ThreadLocal<?> {} is actually used in ThreadLocal, and the puzzle is actually ...

Added by JoeZ on Sat, 27 Jun 2020 22:59:49 +0300

Alternative to Swagger

Today, I will give you an interface document generator, JApiDocs. swagger must have been used by everyone. It's very convenient and powerful. If you want to say what's wrong with swaager, it must be that annotations are more cumbersome to write. If I say that there is a tool that can generate documents without comments, are you excited? He is o ...

Added by wildmalc on Mon, 22 Jun 2020 05:08:54 +0300

dubbo of springboot series

dubbo of springboot series Introduction to dubbo Apache Dubbo`Is a high performance Java RPC framework.(1) High performance RPC calls for interface proxyProvides high-performance proxy-based remote invocation capabilities. Services are interface-granular and shield developers from the underlying details of remote invocations.(2) Intelligent Loa ...

Added by cleromancer on Sun, 21 Jun 2020 19:12:57 +0300

IDEA builds Spring Boot project

What is Spring Boot Spring Boot is a new framework provided by the Pivotal team, which is designed to simplify the initial construction and development process of new spring applications. The framework uses a specific way to configure, so that developers no longer need to define a templated configurat ...

Added by phpfreakjav on Tue, 16 Jun 2020 07:11:02 +0300

The SpringBoot Getting Started series implements uniform exception handling, which is as simple as that!

Next, we will focus on how to use uniform exception handling in SpringBoot applications.How do I reuse exception data with normal business data and return it as a json?   Why uniform exception handling Currently, our project architecture is basically a separate front-end and back-end model: developed using Restful interface protocol, the fo ...

Added by DeGauss on Wed, 13 May 2020 20:00:56 +0300

K8S implementation of gray-scale publishing based on ingress nginx

Previously introduced Gray publishing with ambassador , how to use the implementation of ingre nginx. introduce Ingress nginx is a K8S ingress tool, which supports the configuration of Ingress Annotations to achieve gray-scale publishing and testing in different scenarios.   Nginx Annotations Four Canary rules are supported: nginx.in ...

Added by 1042 on Wed, 13 May 2020 09:58:48 +0300

Spring boot built-in life cycle event details spring boot source code

Github address of spring boot Chinese annotation project: https://github.com/yuanmabiji/spring-boot-2.1.0.RELEASE Continued Spring boot event monitoring mechanism source code analysis (I) spring boot source code (IX) Learn from the past Let's review the content of the previous article briefly. In the previous article, we analyzed the principle ...

Added by bonzie on Tue, 05 May 2020 11:05:49 +0300

A process of Spring Bean from scratch

There is a beginning but no end Experienced the history of java development, from the early writing of native servlet s, self-developed mvc and jdbc tools, and the use of open-source framework struts, hibernate, jsp, spring, springmvc, freemaker, springboot, to the final front and back-end separate development, the first development tool is e ...

Added by robinas on Fri, 24 Apr 2020 09:45:41 +0300

Detailed tutorial on Redis caching in the SpringBoot series

Introducing the use of caching in SpringBoot projects, let's start with an introduction to Spring's cache abstraction and JSR107. This blog is a note I made after learning Silicon Valley videos and referring to other blogs for learning purposes only. This blog will provide more detailed information about Spring's cache annotations, how to use t ...

Added by t3l on Tue, 21 Apr 2020 20:09:29 +0300

Tutorial on using the SpringBoot series log framework

Based on the previous blog, An introduction to the log framework of the SpringBoot series and its principles After the blog, this blog can help you learn about Springboot by providing a more detailed description of the specific use of the blog framework as a usage manual @[toc] 1. SpringBoot Log Level 1) Introduction to Log Level Briefly introd ...

Added by busnut on Tue, 21 Apr 2020 20:02:24 +0300