Spring Boot integrates Servlet,Filter,Listener, access to static resources

Catalog Spring Boot integrates Servlet s (two ways) First, register the Servlet components by annotation scanning: The second way (by completing registration of Servlet components) Springboot Integrate Filter (similar to Integrate Servlet) First method (registration of Fliter components via annotation scanning) Second way (register the Fi ...

Posted on Tue, 07 Apr 2020 11:45:58 -0700 by oldmanice

How are spring application objects built? SpringBoot source code

Note: the source code analysis corresponds to spring boot version 2.1.0.RELEASE This connection What is the starting process of SpringBoot? Spring boot source code (7) Learn from the past Let's review the contents of the previous article. In the previous article, we analyzed the startup process of SpringBoot, and now we summarize the key steps: ...

Posted on Mon, 06 Apr 2020 04:56:42 -0700 by isam4m

Sample project for bare-handed code sweeper login

Sample project for bare-handed code sweeper login I don't know if it's WeChat or not, now there are more and more scenes of scanner login. As a pursuit and ideal new four good yard farmer, of course, we must keep up with the trend of the times and make an example with no hands. This sample project is intended for the following technical stac ...

Posted on Sun, 05 Apr 2020 00:04:40 -0700 by Will Poulson

springboot + @scheduled multitasking concurrent

The following is about springboot + @scheduled multitasking concurrency. For details of spring's scheduled tasks (including multitasking concurrency), see Portal I. Problems The project is built with springboot. I want to add @ Scheduled annotation to the method to realize two timing tasks. However, it is found that two tasks are not execut ...

Posted on Sat, 04 Apr 2020 17:40:32 -0700 by tulleh

(3) SpringBoot -- template engine thymeleaf

1, Template engine supported by SpringBoot 1. Tymeleaf (official recommendation) 2,FreeMarker 3,Groovy 4,mustache   Why isn't JSP recommended for SpringBoot? 1. JSP is more intrusive to the page. 2. The management of web container version.   2, About thymeleaf Perfect separation of front and back ends   3, Realize MVC The document ...

Posted on Fri, 03 Apr 2020 00:21:19 -0700 by Saphod

reload loader of SpringBoot

background More and more people use springboot Spring boot devtool for hot deployment   The same castException class occurred Analysis First, make sure that the castException of the same class is caused by different classloader s, for example. Whether a class is the same depends on two factors Same classloader class files are the sam ...

Posted on Wed, 01 Apr 2020 06:32:57 -0700 by tommychi

Are you still using Date?LocalDateTime is recommended!

Time processing is often encountered during project development, but do you really use it right? Understand that static modification of SimpleDateFormat is disabled in the Alibaba Development Manual? By reading this article, you will learn: Why do you need LocalDate, LocalTime, LocalDateTime [new class provided by java8]? The use of the new ...

Posted on Mon, 30 Mar 2020 20:22:38 -0700 by nicolam1

Spring boot Principle Practice (11) -- spring boot extension analysis CommandLineRunner

Article directory Catalog 1, ApplicationContextInitializer ① Use steps: ② There are three registration methods: Demo 1.app.addInitializers Demo 2: specify by configuration item context.initializer.classes 3.spring.factories mechanism (this can also be used to register listener listeners) 2, Comma ...

Posted on Tue, 17 Mar 2020 00:40:17 -0700 by MarcAndreTalbot

Proxy mode for springboot AOP learning notes Basic understanding of CGLIB dynamic proxy

If the object we want to proxy does not implement any interfaces, then we will use CGLIB dynamic proxy, which is the main difference from JDK dynamic proxy. The idea of the CGLIB proxy is to inherit all the methods of the instance class through inheritance, then override them all, and rewrite them with ...

Posted on Mon, 16 Mar 2020 18:47:36 -0700 by troybtj

How are external configuration property values bound to XxxProperties class properties?--SpringBoot Source

Note: This source analysis corresponds to SpringBoot version 2.1.0.RELEASE 1 Preface This Join How does SpringBoot achieve automatic configuration?--SpringBoot Source (4) So let's review the previous one briefly. In the previous one, we analyzed the related source code of SpringBoot auto-configuration. Auto-configuration related source code ha ...

Posted on Fri, 13 Mar 2020 10:14:38 -0700 by chixsilog