Dispatcher Servlet Initialization for Spring MVC Source Learning

Servlet life cycle (review) 1. The servlet container initializes the corresponding servlet call init() method after receiving the first http request Initialized servlets are singletons, and how many servlet instances will there be in web.xml when you configure how many servlets Configuring < lo ...

Posted on Fri, 09 Aug 2019 01:53:57 -0700 by BLeez

spring-boot | Multithread Concurrent Timing Tasks

spring-boot | Multithread Concurrent Timing Tasks I just read Spring Boot's article on timed tasks, and I feel good about it. Spring Boot uses Spring's own Schedule to achieve timing tasks is very simple and convenient. Here we share. Open Cache Annotations @SpringBootApplication @EnableScheduling //Open Timing Tasks public class Application { ...

Posted on Fri, 09 Aug 2019 00:22:01 -0700 by ashz

One of Spring's Cores: What does Spring's configuration file do?

The first two articles explained the concepts of IOC and DI and why we need them. This article will continue with the definition of Spring IOC container, xml configuration file, which will clarify two questions: 1. The role of Spring XML configuration files. (Inheritance with IOC thought) 2. If the d ...

Posted on Thu, 08 Aug 2019 19:19:11 -0700 by sader

Spring-Common Notes and Role

1. Common Notes and Functions 1.1 @Configuration Declare that the current class is a configuration class (equivalent to an xml file for a Spring configuration) 1.2 @ComponentScan Automatically scan and register all classes using @Service,@Component,@Controller,@Repository under the specified package ...

Posted on Thu, 08 Aug 2019 18:46:04 -0700 by grungefreak

Spring-AOP Source Parsing (Case+Parsing)

1.AOP Interpretation From Baidu Encyclopedia AOP is the abbreviation of Aspect Oriented Programming, which means: facet-oriented programming, a technology for unified maintenance of program functions through precompilation and run-time dynamic agents.AOP is the continuation of OOP, a hot spot in soft ...

Posted on Thu, 08 Aug 2019 18:41:32 -0700 by electricblue

Start Load Initialization Process of Spring Bean Container

1. DESC Spring's handling of beanFactory 2. CODE public void refresh() throws BeansException, IllegalStateException { synchronized (this.startupShutdownMonitor) { // Prepare this context for refreshing. prepareRefresh(); // Tell the subclass to refresh the internal bean factory. ConfigurableListableBeanFactor ...

Posted on Thu, 08 Aug 2019 04:55:50 -0700 by Tjorriemorrie

Can Python still work like this? Encrypted file, unbreakable!

In life, sometimes we need to encrypt some important files. Python provides easy-to-use encryption libraries such as hashlib and base64. * * But for everyday learning, we can use XOR operation to implement a simple file encryption program, thus strengthening our programming ability. Remember to add an a ...

Posted on Wed, 07 Aug 2019 06:15:05 -0700 by phpwannabe25

Summary of Simple Design Patterns

1. Design Patterns 1. Single case 1. Role Singleton mode can save objects for a long time. Singletons can transfer values: they can transfer values without any relationship between two objects, which reduces coupling and improves cohesion. Note: Static methods are acquired through class calls, ...

Posted on Wed, 07 Aug 2019 03:00:23 -0700 by Panthers

Spring cache annotations @CachePut, @CacheEvict, @CacheConfig are used

Links to the original text: https://www.cnblogs.com/OnlyCT/p/7845660.html#t1 ** This article reproduces: https://www.cnblogs.com/OnlyCT/p/7845660.html#t1 Catalog @Cacheable @CachePut @CacheEvict @CacheConfig @Cacheable @ Cacheable i ...

Posted on Tue, 06 Aug 2019 03:24:18 -0700 by drtanz

SSM Framework Learning-Spring MVC

SSM Framework Learning (3) - Spring MVC I. MVC Model II. Sring Web MVC Brief Introduction and Work Flow 2.1 Introduction to Spring Web MVC 2.2 Spring Web MVC workflow 3. Building Spring Web MVC working environment 4. Annotation-based spring development V. Receiving and Passing Page Value 5.1 Page ...

Posted on Tue, 06 Aug 2019 02:16:50 -0700 by flycast