Understanding the principle of automatic configuration in SpringBoot learning notes
Understand the principle of automatic configuration
1. SpringBoot features
1.1. Dependency management
Dependency management of parent project
Dependency management
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version ...
Posted by vintox on Wed, 23 Feb 2022 16:51:00 +0100
SpringBoot & Maven dependency, configuration separation and packaging
introduce
With the iteration of technology, SpringBoot is widely used in our daily development. When using maven to build traditional web applications, we package the projects into war packages and deploy them in tomcat. All directory resources are separated, which is very convenient for the modification of configuration files. However, if you ...
Posted by seavers on Wed, 23 Feb 2022 05:41:27 +0100
The first actual combat project of springboot+vue music website in winter vacation
preface
Front end usage: vue/cli "^ 4.5.15" Back end usage: springboot2 6.2, mybatis-plus3. 5.9,mybatis-plus-generator3. five point one Deployment: nginx,tomcat,webpack Summary Although the project is colorful, it is not difficult The biggest gains are: 1. Technical selection and task requirements Once determined, late changes ...
Posted by scooterlibby on Tue, 22 Feb 2022 17:13:16 +0100
CGB2110-DAY07-front and rear end call
Article catalogue
1. Axios post request
1.1 INTRODUCTION cases
1.1.1 front end JS1.1.2 post request parameter description1.1.3 AxiosController call 1.2 syntax description of common request types1.3 put request test
1.3.1 edit front-end JS1.3.2 editing AxiosController 1.4 cross domain description
1.4.1 homology strategy1.4.2 w ...
Posted by k.soule on Tue, 22 Feb 2022 16:15:01 +0100
An actuator that can automatically match the implementation class according to the interface (noodles)
Demand background
Take a scenario. For example, at this time, we wrote a restaurant class to make different faces for users according to their needs.
So how to achieve it at this time?
The conventional writing method may be to take the user input as a variable, and then make if for this variable
If there are n kinds of faces, there are ...
Posted by abda53 on Tue, 22 Feb 2022 14:05:20 +0100
Springboot annotation @ EnableConfigurationProperties, @ ConfigurationProperties, @ ConfigurationPropertiesScan differences
preface
In the SpringBoot project, we often need to bind some configuration items with specific prefixes to a configuration class. At this time, we can use @ EnableConfigurationProperties and @ ConfigurationProperties annotations to implement. In SpringBoot 2 The @ ConfigurationPropertiesScan annotation is also added in 2.0 to help us simplify ...
Posted by amal.barman on Mon, 21 Feb 2022 15:30:49 +0100
SpringBoot-7 internationalization
SpringBoot-7 internationalization
This article uses SpringBoot+Thymeleaf to explain the internationalization of springboot. If you don't know Thymeleaf well, you can check my previous articles. Code word is not easy to hope that you can pay attention to my official account. Your concern is my greatest support. Thank you. At the end of the arti ...
Posted by magaly on Mon, 21 Feb 2022 12:57:41 +0100
[fishing artifact] UCode Cms management system has built-in super easy-to-use code generator to solve the pain points of multi meter connection
1, Preface
UCode Cms content management system is an important part of Java knowledge map and a scaffold for enterprise application software development. Current version 1.3.3.
Use simple demo project Quick experience Address.
(1) Project characteristics
1. Source code open source
The source code is open-source, and the MIT open-source lic ...
Posted by scrubbicus on Mon, 21 Feb 2022 05:32:43 +0100
After using MyBatis interceptor, the fishing time is long again
scene
In the development of back-end services, the popular framework combination is SSM (SpringBoot + Spring + MyBatis). When we develop some business systems, there will be many business data tables, and the information in the tables will be inserted again, and many operations may be carried out in the whole life cycle.
For example, when we ...
Posted by chyan on Mon, 21 Feb 2022 05:27:52 +0100
Implementation of spring boot custom annotation (used with AOP, reflection mechanism and interceptor)
1. Annotation type
Java annotation is used to provide metadata for Java code. You can obtain the specified annotation object through reflection, and then obtain the metadata information in the annotation.
Java annotations have four standard meta annotations: @ Target, @ Retention, @ Documented, @ Inherited.
1.1 @Target
@Target describes ...
Posted by Harbinger on Mon, 21 Feb 2022 04:50:05 +0100