SpringBoot basic configuration

Copy project 1. Retain the engineering infrastructure 2. Erase the original engineering trace Steps: 1. Copy the created folder into a springboot_0x_xxxxxxx folder 2. Enter springboot_ 0x_ XXXXXXXX modify factid 6 in pom.xml file 3. Delete unnecessary files, leaving only src and pom.xml files 4. Then spring boot_ 0x_ XXXXXXXX can be used as a ...

Posted by chrispos on Fri, 19 Nov 2021 18:38:01 +0100

Use of spring boot parameter validation (validator)

Use of spring boot parameter validation (validator) 1, Introduction to validator Bean Validation is a set of annotation based data validation specifications defined by Java. At present, it has been upgraded from version 1.0 of JSR 303 to version 1.1 of JSR 349 and then to version 2.0 of JSR 380 (2.0 was completed on August 2017). It has g ...

Posted by LeeRoy8888 on Fri, 19 Nov 2021 14:55:57 +0100

Package the SpringBoot project as a Docker image

The SpringBoot project is packaged as a Docker image With the development of microservices, service docker has become a trend. This paper records the whole process of packaging the SpringBoot project into docker. catalog: 1. Prepare docker private server environment 2. Service docker packaging configuration 3. Service packaging & run v ...

Posted by SystemLord on Fri, 19 Nov 2021 12:30:38 +0100

SpringBoot learning notes

Chapter I Use of basic configuration files The method of replacing the configuration file and importing the configuration file into the class ImportResource public class Student { private String name; private Integer age; private String sex; //Then there are the set method and toString method } The content of the co ...

Posted by Gafaddict on Fri, 19 Nov 2021 11:06:38 +0100

A springboot project built from scratch

Springboot project built from zero The first is the four recent basic folders (I won't explain too much) Create a mapper.xml path in resources that is the same as the mapper interface. If the path is the same, it does not need to be configured. If it is different, it needs to be configured. Here is the mybatis plus configuration for the. y ...

Posted by msandersen on Thu, 18 Nov 2021 17:03:06 +0100

[SpringCloud learning notes] authentication and authorization - based on OAuth2

Authentication and authorization - based on OAuth2 1, Establishment of OAuth2 authentication service - based on memory 1. Create project import dependency <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-security</artifactId> </dependency> <dependen ...

Posted by MaxD on Wed, 17 Nov 2021 15:14:07 +0100

SpringBoot principle -- automatic configuration

Original website: brief introduction explain         This article describes how spring boot implements automatic configuration. Problem elicitation SpringBoot has the following functions: The created SpringBoot project (if the startup class is DemoApplication) can be run directlyYou can customize the configuration in ...

Posted by skippence on Wed, 17 Nov 2021 13:07:36 +0100

Spring(SpringBoot)--FactoryBean -- use / principle / detailed explanation

Original website: brief introduction explain         This article introduces FactoryBean in Spring, including its function, usage, principle and the application of Mybatis to FactoryBean. What does FactoryBean do?         An object can be produced through a FactoryBean, and the type of the object a ...

Posted by mikie46 on Wed, 17 Nov 2021 12:45:27 +0100

Spring cloud Alibaba configuration integration

1, Nacos registry 1. pom.xml configuration dependency <!-- nacos As a registry Discovery Center --> <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> </dependency> 2. application.yml configure Nacos Service Center Address ...

Posted by arpowers on Wed, 17 Nov 2021 08:28:31 +0100

Spring boot + rabbit MQ implements RPC calls

When it comes to RPC (Remote Procedure Call Protocol), the estimates in the minds of the partners are RESTful API, Dubbo, WebService, Java RMI, CORBA, etc.In fact, RabbitMQ also provides us with RPC function, which is very simple to use.Today, SongGe will share with you how spring boot + rabbit MQ implements a simple RPC call through a simple c ...

Posted by tibberous on Wed, 17 Nov 2021 06:45:09 +0100