002SpringBoot auto configuration principle

Preliminary discussion on principle: pom.xml Spring boot dependencies: the core depends on the parent project!When we write or introduce some sprigboot dependencies, we don't need to specify the version, just because there are these version warehouses starter <dependency> <groupId>org.springframework.boot</ ...

Added by ONiX on Sun, 06 Feb 2022 05:31:12 +0200

SpringBoot integrated Swagger ultimate, madness

Project integration Swagger Learning objectives: Understand the concept and function of Swagger Master the integration of Swagger in the project and automatically generate API documents About Swagger Front and rear end separation Front end - > front end control layer, view layer Backend - > backend control layer, service la ...

Added by trink on Sat, 05 Feb 2022 20:28:54 +0200

Principle and Configuration of AOP Face Oriented Programming in spring Bottom Layer

Summary What is AOP AOP is the abbreviation of Aspect Oriented Programming, meaning: Face-Oriented Programming AOP was originally proposed by the organization of AOP Consortium, which specifies a set of specifications. spring introduces the idea of AOP into the framework, a technology for unified maintenance of programs through precompi ...

Added by ed01 on Sat, 05 Feb 2022 19:11:12 +0200

28 API07 - notes, definitions and notes

1 Notes Annotation is very powerful. It can enhance our java code, and use reflection technology to expand and realize many functions. They are widely used in the bottom three frameworks. Traditionally, we declare through XML text file (as shown in the figure below, but XML is cumbersome and difficult to check), but now the most mainstream ...

Added by sheriff on Sat, 05 Feb 2022 13:21:34 +0200

MyBatis basic learning knowledge points 2

This paper connects MyBatis basic learning knowledge point 1 and continues to discuss the following two issues         1. What is Dao configuration file mainly used for? How to configure?         2. How to test program running with test method? What does each stat ...

Added by Azad on Sat, 05 Feb 2022 11:53:59 +0200

spring boot parameter check internationalization exception information

scene If the validator check parameter is not valid, save the error information to BindingResult, and finally use i18n to display the corresponding exception information according to different countries and regions. You do not need to add any additional code to your application to do this once you have configured it. Today spring boot is so p ...

Added by alanzhao on Fri, 04 Feb 2022 19:25:38 +0200

How to deploy Spring Boot application on Tomcat Server

In this section, we will learn how to deploy Spring Boot applications on Tomcat Server. It consists of three steps: Set up Spring Boot applicationCreate a Spring Boot WARDeploy WAR to Tomcat example Let's create a Maven example to deploy on Tomcat Set up Spring Boot application Step 1: open Spring Initializr http://start.spring.io. Step ...

Added by champrock on Fri, 04 Feb 2022 05:19:16 +0200

Upload and download files using the Spring Boot application

Upload and download the files using Spring Boot Application - PixelTricehttps://www.pixeltrice.com/upload-and-download-the-files-using-spring-boot-application/ If you are on the Internet, you will certainly upload or download some files, such as movies, songs or any files, such as pdf, images, etc. These are very common features of any applica ...

Added by washbucket on Fri, 04 Feb 2022 03:57:04 +0200

Bean's scope: singleton, prototype, request, session

Scope of Bean In short, bean s are objects initialized, assembled, and managed by the IoC container. There are four scopes: 1.singleton When the scope of a bean is Singleton, only one shared bean instance will exist in the Spring IoC container, and all requests to the bean will return only the same instance of the bean as long as ...

Added by mananx on Thu, 03 Feb 2022 21:07:11 +0200

Spring Boot: Global exception handling

Spring Boot also provides good support for exception handling. It provides @ ControllerAdvice annotation and @ ExceptionHandler annotation. The former is used to enable global exception capture, while the latter describes which exceptions are captured and handles these captured exceptions. Test code Project structure diagram: pom.xml: &lt ...

Added by rich11 on Thu, 03 Feb 2022 20:03:33 +0200