spring notes learned but not understood

Reading notes on the core principles of spring 5 and handwriting practice of 30 classes catalogue PART1 is written in front of the nonsense PART2 software architecture design principles PART3 is an example of refactoring code PART1 is written in front of the nonsense The example in the article is adapted and simplified to the original ...

Posted by netrepsa on Fri, 29 Oct 2021 03:26:52 -0700

On October 28, 2021, Spring learns Bean construction, setting, injection, single instance and multiple instances, lazy loading, initialization and destruction

Non intrusive: many classes have been written in the system, and now a new technical framework can be used. While using the new framework, the original class does not need to be changed (there is no need to inherit and implement the interface in the new framework). Framework: Spring, Hibernate, Mybatis Intrusive: many classes have been wri ...

Posted by codygoodman on Thu, 28 Oct 2021 13:00:19 -0700

Explanation of Java Web enumeration - super detailed!!!

Enumeration usage problems ​ In web development, enumeration is usually used as status code, code table value, etc., so we often use it in the three-tier architecture. We pass values through the front end, traverse enumeration items, and compare them manually one by one. Manual comparison is still cumbersome. Here is the method of automatic f ...

Posted by TGM on Thu, 28 Oct 2021 08:04:30 -0700

Spring framework and Ioc (inversion of control) & three parameter transfer methods of Spring & the integration of spring and tomcat

Foreword: the knowledge to share today is the Spring framework The code word is not easy. Give me a praise Reprint, please explain! Development tool: eclipse catalogue Spring framework overview ① What is the Spring framework ② Advantages of Spring framework ③ Spring architecture   Ioc (control reversal) and cases Three Spring pa ...

Posted by prcollin on Thu, 28 Oct 2021 06:54:24 -0700

spring quartz cluster construction

background quartz can be used to manage and schedule scheduled tasks. There are cluster mode and stand-alone mode. quartz's stand-alone mode is deployed. All task execution information is saved in memory. There is a single point of failure. quartz's cluster mode has the characteristics of high availability and automatic load balancing, whi ...

Posted by ravi.kinjarapu on Thu, 28 Oct 2021 02:44:00 -0700

Spring inference construction method (medium)

stay Inferential construction method (I) It introduces how to obtain the candidate construction method through determineconstructors frombeanpostprocessors(). After obtaining the construction method, the next step is to infer which construction method to use and instantiate a bean according to the construction method If the candidate construct ...

Posted by duvys on Wed, 27 Oct 2021 01:27:37 -0700

PageHelper paging plug-in, spring security, permission control, and AOP logging

1, PageHelper paging plug-in PageHelper is an excellent open-source mybatis paging plug-in in China. It supports basic mainstream and commonly used databases, such as mysql, oracle, mariaDB, DB2, SQLite, Hsqldb, etc. There are two ways to reference the PageHelper paging plug-in: Introduce Jar package;Use Maven (recommended); 1.1 ...

Posted by rheroux on Tue, 26 Oct 2021 20:49:13 -0700

Spring MVC exception handling

Spring MVC has three ways to handle exceptions: Use the simple exception handler SimpleMappingExceptionResolver provided by Spring MVC.Implement the exception handling interface HandlerExceptionResolver of Spring and customize your own exception handler.Use the @ ExceptionHandler annotation to implement exception handling 1. @ExceptionHandler  ...

Posted by rigi2 on Tue, 26 Oct 2021 19:20:24 -0700

Common underlying core annotations for Spring source code analysis

1, Introduction to the overall functions of Spring framework          1,Spring Core Container:          Module function: Core and Beans modules are the basic parts of the framework, providing IoC (transition control) and dependency injection features. The basic concept here is BeanFactory, which provi ...

Posted by benutne on Sun, 24 Oct 2021 20:04:10 -0700

Singleton design pattern

1, Application scenario of singleton mode Singleton Pattern refers to ensuring that a class has absolutely only one instance in any case and providing a global access point. The Singleton Pattern is a creation pattern. Singleton mode is also widely used in real life. For example, national president, company CEO, Department Manager, etc. In J2E ...

Posted by picos on Sun, 24 Oct 2021 10:23:28 -0700