Maven has a variety of fancy builds, and can print executable Jar packages without SpringBoot
The packaged plug-in of Spring Boot is very cool to use. It can directly type the source code and all dependencies into a Jar package, and it can also run directly in Java Jar. What if a non Spring Boot project wants to make an executable Jar package?
Don't panic, Maven is an old building tool. It's not easy to get this done!
Here a ...
Added by crunchyfroggie on Fri, 28 Jan 2022 04:42:37 +0200
In depth understanding of Spring event publishing and monitoring
In the application built with Spring, the proper use of event publishing and listening mechanism can make our code more flexible and reduce the degree of coupling.
In the application built with spring, the proper use of event publishing and listening mechanism can make our code more flexible and reduce the degree of coupling. Spring provides a ...
Added by dominod on Fri, 28 Jan 2022 04:37:32 +0200
Java project: design and implementation of course selection recommendation communication platform (java+springboot+ssm+mysql)
Design of main functional modules:
Login registration, homepage information browsing, course selection classification viewing, course selection details viewing, comment exchange, collection, browsing volume, background data management, user management, course selection category management, course selection information details management, com ...
Added by Joseph07 on Thu, 27 Jan 2022 18:06:31 +0200
One year's work experience, I was asked about CAS
Wedge
In the previous article, we introduced synchronized and learned that synchronized can solve the atomicity problem of some data. In this article, we continue to learn the knowledge of CAS non locking with AtomicInteger as the starting point.
Using synchronized to solve the atomicity of i + +
Use the synchronized keyword to ensure data a ...
Added by twopeak on Thu, 27 Jan 2022 16:48:20 +0200
SpringBoot learning notes [part03] @ Import advanced usage
SpringBoot learning notes Part03
1. Review of @ import basic usage
@The basic usage of Import annotation is to add the bytecode of the component to be imported into the container in the annotation attribute, and the component will be automatically registered in the container. In short, it is to quickly register components in the container.
R ...
Added by gawrrell on Thu, 27 Jan 2022 15:52:16 +0200
Spring IOC: invokeBeanFactoryPostProcessors call chain
reference material
Spring IoC source code learning: detailed explanation of invokebeanfactoryprocessors
Previously:
Spring IOC: obtainFreshBeanFactory call chain
Written at the beginning: This article is a personal study note. The content is relatively casual and mixed with personal understanding. If there are mistakes, you are welcome to c ...
Added by Atiq on Thu, 27 Jan 2022 14:30:30 +0200
Spring MVC framework learning
Spring MVC framework learning
1. Basic theory
1. Three tier architecture
The development of server-side programs is generally based on two forms: a C/S architecture program and a B/S architecture programThe program of B/S architecture is basically developed using Java language, and the B/S architecture is divided into three layersThree tier ...
Added by wmhop on Thu, 27 Jan 2022 08:24:44 +0200
Spring boot configuration file parsing process
1, Auto configuration class PropertyPlaceholderAutoConfiguration
Spring boot configuration file parsing is realized through its automatic assembly principle. For the principle of automatic assembly, please refer to Core principles of SpringBoot.
The automatic configuration class resolved by the configuration file in Springboot is Propert ...
Added by isam4m on Wed, 26 Jan 2022 18:52:01 +0200
Some notes of SpringBoot (for phased learning only)
Don't read this article, just one for Xiaobai. The preface of this article will continue to be updated
@Bean:
Adding components to the container generally works on methods, and the effect is the same as writing bean tags in the configuration file, and then the method name is equivalent to the id name;
So in the main startup class, how to ge ...
Added by wcl99 on Wed, 26 Jan 2022 14:59:58 +0200
Configuration-based User Name Password Settings and Scenario Description
spring-security basic configuration username password
Scenarios applicable
Configure the basic user password instead of checking it dynamically through a database, etc. Generally speaking, it is suitable for simple scenarios, such as adding a base-based authentication to eureka;
Infrastructure Project Setup
Build a maven project based o ...
Added by busnut on Wed, 26 Jan 2022 09:31:00 +0200