Springboot Source Analysis

Summary: Everyone knows that annotation implements the java.lang.annotation.Annotation interface, seeing is true, hearing is false, and sometimes seeing is not necessarily true. /** * The common interface extended by all annotation types. Note that an * interface that manually extends this one does <i>not</i> define ...

Posted on Wed, 21 Aug 2019 08:45:20 -0700 by simoesp

SpringBoot gracefully configures logs

This article mainly introduces how to record logs gracefully through sl4j log component in SpringBoot. Actually, the first line of code for introducing JAVA is a line of logs. Are you still using System.out.println("Hello, Xiaoming!") to log? Logging components I've experienced The first log component I came into contact with was Lo ...

Posted on Wed, 21 Aug 2019 03:43:27 -0700 by tom2oo8

Spring Boot: Configuration File Details

SpringBoot is a product of simplifying the creation, operation, debugging and deployment of Spring applications. The feature of automatic assembly enables us to pay more attention to the business itself rather than the external XML configuration. We can easily build a WEB project by following the specifications and introducing relevant depende ...

Posted on Wed, 21 Aug 2019 03:42:43 -0700 by tbach2

Springboot 1.x and 2.x use @Configuration Properties to refresh custom properties of bean s

background It is believed that we have encountered some scenarios that need to refresh the custom attribute values of some beans in the project. The source data of propertySource used here may not come from outside, but from the result set generated by the intermediate process of a program running. Scenarios like this, such as data preprocessi ...

Posted on Tue, 20 Aug 2019 21:41:09 -0700 by CountryGirl

Remedial Series-springboot-restful Applications

1. Objectives Understand what Restful is, basic concepts and styles; Can use SpringBoot to implement a set of basic Reestful style interfaces; Use Swagger to generate clear interface documentation. 2. Getting Started with Restful What is RE ...

Posted on Sun, 18 Aug 2019 19:20:43 -0700 by matchu

A Preliminary Understanding of Spring Cloud

I. Basic Description of MicroService Reasons for MicroService Architecture: Solving the shortcomings of single application framework. Monolith framework: The project organization in which all code and functions are included in a WAR package is called Monolith. Disadvantages of Monolith framework: Compiling, deploying and testing are difficu ...

Posted on Tue, 13 Aug 2019 05:14:29 -0700 by fellixombc

SpringBook Learning Notes: First Run Understand

I. Introduction to Spring Boot 1. Introduction to Spring Boot A framework for simplifying Spring application development; A big integration of the Spring technology stack; One-stop solution developed by J2EE; 2,Spring Boot HelloWorld One function: The browser sends the hello request, the server accepts the request and processes ...

Posted on Wed, 31 Jul 2019 11:50:36 -0700 by aldoh

Simple Analysis of Springboot Automatic Configuration

Springboot uses version 2.1.6.RELEASE.Simply put, Springboot uses BeanFactoryPostProcessor (specifically the Configuration ClassPostProcessor class) as the entry, which is automatically configured with annotations.It's helpful to understand BeanFactoryPostProcessor and Annotated Element Utils first. Begin with ___________. First, take a look at ...

Posted on Sun, 28 Jul 2019 06:20:24 -0700 by msing

Meaning of Maven Scope value

https://www.jianshu.com/p/7145f01ac3ad In the pom.xml file of a Maven project, dependency is typically given a scope property that specifies the scope of use of dependent jar packages. scope has the following five values: 1. compile (default) Dependent projects need to participate in the compilation of ...

Posted on Fri, 26 Jul 2019 18:22:41 -0700 by backinblack

Integrating swagger-ui into spring book project

1. Adding dependencies <!--SpringBoot integration Swagger-ui--> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version> </dependency> <!-- ...

Posted on Mon, 22 Jul 2019 03:17:29 -0700 by geo3d