Spring Web MVC-20 of spring series

Spring Web MVC Spring Web MVC is an original Web framework based on Servlet API. In parallel with Spring Web MVC, Spring Framework 5.0 introduces a responsive stack Web framework called "Spring WebFlux" DispatcherServlet Like many other Web frameworks, Spring MVC is designed around the front-end controller pattern. One central ...

Added by mrneilrobinson on Tue, 18 Jan 2022 15:19:52 +0200

How does SpringBoot use prefix trees to filter sensitive words

1, Prefix tree Generally, when designing websites, there will be problem publishing or content publishing functions. A very important point of these functions is how to realize sensitive word filtering. Otherwise, there may be bad information publishing, or the published content may contain code fragments with malicious functions. The basic al ...

Added by j0n on Tue, 18 Jan 2022 10:08:00 +0200

Spring 5 framework notes summary

1. New features of spring 5 framework The code of the whole spring 5 framework is based on Java 8, and the runtime is compatible with JDK9. Many classes and methods that are not recommended are deleted from the code base. (new feature 1) 2. Spring 5 integrates Log4j2 Version (new feature 2) The Spring 5 framework comes with a gener ...

Added by werkkrew on Tue, 18 Jan 2022 03:45:15 +0200

Handwritten Spring MVC

The above four articles have introduced and written the life cycle of spring bean. Now let's start writing Spring MVC In Spring MVC, we only write one C layer, that is, the Controller control layer (there is no parent-child container) As we all know, Spring MVC has a CPU called dispatcher Servlet, which implements HttpServlet as a Servlet Si ...

Added by srboj on Tue, 18 Jan 2022 00:40:14 +0200

Implementation principle of HashMap (just read this article)

HashMap is a collection container that senior java engineers must be proficient in. Its importance is almost equal to the importance of Volatile in concurrent programming (visibility and order).Through the detailed explanation of graphic source code, this article deeply analyzes the important kernel knowledge of HashMap, which is easy to read, ...

Added by pietbez on Mon, 17 Jan 2022 20:29:41 +0200

2021-07-18 mybatis puls quick start

MyBatisPlus MyBatisPlus overview brief introduction MyBatis is meant to simplify JDBC operations! Official website: https://mp.baomidou.com/ MyBatis Plus simplifies MyBatis! characteristic No invasion: it is only enhanced without change, and its introduction will not affect the existing project, which is as smooth as silk L ...

Added by gplaurin on Sun, 16 Jan 2022 12:09:33 +0200

SpringBoot encapsulates the global exception handler

SpringBoot encapsulates the global exception handler 1. Cause Global exception handling refers to the unified and automatic handling of exceptions in the whole system, which can handle exceptions in the project without some try/catch. Instead of forcing to write try/catch, exceptions are captured by a unified exception handling mechanism. @ ...

Added by kcengel on Sun, 16 Jan 2022 10:25:39 +0200

@Relationship between Controller/@RestController/@ResponseBody annotation

@Relationship between Controller/@RestController/@ResponseBody annotation 1.@Controller It is used to label the controller layer and is mainly used to process the response in the view. He decides how to call the entity Bean of the Model, how to call business operations such as data addition, deletion, modification and query in the business la ...

Added by Rebel7284 on Sun, 16 Jan 2022 05:43:01 +0200

Detailed explanation of BeanDefinitionRegistryPostProcessor class of Spring

1, BeanDefinitionRegistryPostProcessor class /* * Copyright 2002-2010 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * ...

Added by gp177 on Sun, 16 Jan 2022 04:18:29 +0200

Common ways for Spring Boot to read configuration files

1, Introduction   in the actual development process, we often need to obtain the value of the configuration file to realize the configurability of our program. Today, let's take a look at several ways to obtain the value of the configuration file in Spring Boot. 2, Dependency and configuration 2.1 maven dependency   the versio ...

Added by Jon12345 on Sat, 15 Jan 2022 23:44:28 +0200