Original Spring Boot 2.3 new features layered JAR

background In our actual production containerization deployment process, we often encounter the situation that the Docker image is large and the deployment and release are slow There are three main factors that affect the image size of docker: The size of the underlying mirror. Try to choose Apache as the basic image to reduce the built-in s ...

Posted on Sun, 24 May 2020 19:09:01 -0700 by no3dfx

Spring source code: what have you done since ApplicationContext was started?

1, Introduction When using ApplicationContext to start the Spring container, the code is as follows: ApplicationContext applicationContext = new ClassPathXmlApplicationContext( "applicationContext.xml"); This line of code, including the whole process of Spring startup, will go through ...

Posted on Sun, 24 May 2020 04:01:23 -0700 by yalag

Simple introduction to SpringBoot + Spring Security

This article mainly introduces a simple introduction to SpringBoot + Spring Security Introduction to Spring Security Spring Security is not introduced too much here. For details, please refer to Official documents Let me just talk about the spring security core functions: Certification (who are you) Authorization (what can you do) ...

Posted on Sat, 23 May 2020 22:12:20 -0700 by daucoin

The road to Java code performance optimization

1. Preface Recently, I have been busy participating in the company's new project development. As we are about to go online, we are testing the performance of the system, and in the process, we find some code that has room for performance optimization.So I decided to write an article to record all the performance-optimized case s I've encount ...

Posted on Sat, 23 May 2020 18:51:24 -0700 by jayd1985

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.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

Why can Spring Boot package run directly?

Author: Format http://fangjian0423.github.io/2017/05/31/springboot-executable-jar Spring Boot provides a plug-in spring-boot-maven-plugin It is used to package the program into an executable jar package. Add this plug-in to the pom file: <build>  <plugins>  <plugin>  <groupId>org.springframework.boot</groupId>  & ...

Posted on Tue, 19 May 2020 23:17:52 -0700 by Melville

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

The black pot of YYYY-MM-DD, we don't carry it!

Author: Tony rabbit https://zhuanlan.zhihu.com/p/101150248 Writing this blog post is a record of cross year bug s. Last year, the next group's partner calculated the number of days between two dates, because the calculation was wrong for cross year reasons. At that time, the little sister of the test group did not simulate this scenario, whi ...

Posted on Tue, 19 May 2020 00:14:16 -0700 by subasi

When Tomcat meets Netty

Story background Di ~ Di ~ Di ~, production accident, memory leak! Yesterday afternoon, I suddenly received the message of operation and maintenance that the memory in the production environment of a system in the branch leaked, so I helped to check it. Troubleshooting process The first step is to log The exception log given by the branch is ab ...

Posted on Mon, 18 May 2020 20:57:27 -0700 by Skaara