Spring5 learning record (to be completed)

1,Spring 1.1 INTRODUCTION ​ Spring origin and interface21 ​ Spring is an open source framework, which is developed by [Rod Johnson]( https://baike.baidu.com/item/Rod Johnson). It is created to solve the complexity of enterprise application development. Spring uses basic JavaBean s to do things that previously could only be done by EJB s. H ...

Posted by deth4uall on Sun, 09 Jan 2022 17:02:09 +0100

Upload, download and online preview of files based on SpringBoot (SpringBoot demo)

In the java field, SpringBoot is a very useful framework that can quickly build web projects. Here is a record of using SpringBoot to upload, download and preview files online. 1. Create database and database tables This paper mainly uses the user and the files to which the user belongs, so we only need to design the user table and file tab ...

Posted by srdva59 on Sun, 09 Jan 2022 16:02:33 +0100

Spring Data JPA from getting started to mastering ~@ Version to deal with optimistic locks

@Version handles optimistic locks @Introduction to Version lock When studying Auditing, we found an interesting annotation @ Version. The source code is as follows: package org.springframework.data.annotation; /** * Demarcates a property to be used as version field to implement optimistic locking on entities. */ @Retention(RUNTIME) @Target ...

Posted by neorunner on Sun, 09 Jan 2022 11:10:39 +0100

Spring -- transaction propagation (introduction, example explanation, level introduction, code implementation)

Spring (IV) -- transaction propagation (introduction, example explanation, level introduction, code implementation) 1, Transaction propagation 1. Transactional communication introduction Spring defines an enumeration class to facilitate the use of transaction propagation behavior: 2. Transaction propagation example explanation Or use th ...

Posted by webbwbb on Sun, 09 Jan 2022 11:05:49 +0100

Spring source code - container refresh #invokeBeanFactoryPostProcessors()

#Spring source code - container refresh #invokeBeanFactoryPostProcessors() Spring version: Spring 5.3.13-release #1. invokeBeanFactoryPostProcessors() activates the factory's processor into the IOC container as a Bean The purpose of this step is to call the enhanced processors of various beanfactories. The most critical one is the Con ...

Posted by littlevisuals on Sun, 09 Jan 2022 06:24:46 +0100

spring programmatic and declarative transactions

catalogue Programming transaction Simple case TransactionTemplate  PlatformTransactionManager Declarative transaction Simple use Simple example @Transactional common properties Transaction propagation behavior Points needing attention Programming transaction Programmed transaction management is intrusive transaction management, u ...

Posted by PABobo on Sun, 09 Jan 2022 05:13:46 +0100

Spring Bean lifecycle

What is the lifecycle of spring beans For ordinary Java objects, create the object when new, and then the object can be used. Once the object is no longer used, Java automatically garbage collects it. The objects in Spring are beans. Beans are no different from ordinary Java objects, except that Spring no longer uses the new object itself, bu ...

Posted by abnfire on Sat, 08 Jan 2022 12:42:26 +0100

SpringBoot implements Excel import and export performance explosion table, which is elegant enough to use

 2022-01-06 12:12 The following article comes from macrozheng, the author of dream de starry sky macrozheng. Focus on Java technology sharing, covering SpringBoot, SpringCloud, Docker, middleware and other practical technologies. The author is Github open source project mall (40K+Star). Hello, I'm the second brother! Operating Excel ...

Posted by newbreed65 on Sat, 08 Jan 2022 10:41:15 +0100

Introduction to Spring Boot integration Shiro

Introduction to Shiro Apache Shiro is an open source lightweight Java security framework, which provides authentication, authorization, password management, session management and other functions. Compared with Spring Security, Shiro framework is more intuitive and easy to use, and can also provide robust security. In the traditional SSM frame ...

Posted by Lustre on Sat, 08 Jan 2022 10:07:26 +0100

Not familiar with POI, want to simply implement Excel operation? Just use EasyPoi

In our daily work, we often encounter the function of operating Excel, such as exporting an Excel report of user information or order information. You must have heard of POI, which can be realized. But the API implemented by POI is really troublesome. It needs to write line by line parsing code (similar to Xml parsing). Today, I recommend a ver ...

Posted by MaTT on Sat, 08 Jan 2022 09:20:40 +0100