Spring Boot 2.x Actual Warfare--First Spring Boot Program

Spring Boot 2.x Actual Warfare--First Spring Boot Program The Spring Boot 2.X Actual Warfare series will be divided into the following modules. This section will build a RESTful API and customize the return data and HTTP return codes, as well as the data passed to the API interface. The next section will integrate Log4j2 with Slf4j for log prin ...

Posted by sdyates2001 on Tue, 10 Mar 2020 09:42:36 -0700

Chapter 29: Swagger2 unit test Token authentication for spring security integration

Related knowledge Through the previous article, we implemented the use of JWT for interface authentication. When requesting an interface, we need to pass Token in the Header header, so that the backend can identify the requester and judge whether the interface can be requested. JWT interface authenti ...

Posted by Kieran Huggins on Tue, 10 Mar 2020 03:38:13 -0700

springboot learning 4.1 -- thmeleaf syntax 1

Learn spring cloud from station b, and now make a summary. This summary removes the small errors in the video, and reminds some mistakes b station link: https://www.bilibili.com/video/av55993157 Material link:https://pan.baidu.com/s/1o0Aju3IydKA15Vo1pP4z5w Extraction code: 21ru Previous link Next link: ...

Posted by lenerd3000 on Tue, 10 Mar 2020 03:14:39 -0700

Spring boot: the filter of spring boot

First of all, let's talk about the filter. The filter is the process of data filtering and preprocessing. When we visit the website, sometimes we will publish some sensitive information, and some of them will be replaced by * after we send it, and some of them will be controlled by login authority. A resource, without authorization, can' ...

Posted by Smicks on Mon, 09 Mar 2020 23:07:37 -0700

Source Code Resolution Quartz Distributed Cluster Implementation

    1. Introduction Previous articles have provided a preliminary introduction to the use of quartz quartz-2.2.3 Source Code Analysis and Integration of Quartz and Spring In this article, the Quartz distributed cluster implementation is analyzed from the source code perspective. 2. Quartz Cluster ...

Posted by Vorotaev on Mon, 09 Mar 2020 17:27:13 -0700

Basic steps for JPA to access database

Basic steps for JPA to access database: 1. Define the Table in the Entity class mapping database. The key is @ Entity, @ Table annotation Entity class, @ Entity annotation marks the Entity class of JPA, @ Table annotation indicates which Table in the database corresponds to the Entity class. @The Id a ...

Posted by maxrisc on Mon, 09 Mar 2020 02:59:29 -0700

Spring boot source code parsing - startup process

We all know that to start a spring boot project, you only need to run the main method of the main class. What is the starting mechanism behind this? Let's trace the source code and analyze it specifically: Our startup class is as follows: @SpringBootApplication public class DemoSpringbootApplication { ...

Posted by Txtlocal on Mon, 09 Mar 2020 00:52:28 -0700

Setting up the spring cloud config unified configuration center

Configuration center Create several configuration files on git, as shown in the figure above. The file naming rules are {project}-{profile}. For example, the project name corresponding to the config client dev file is config client, and the version is: dev. spring cloud config server pom.xml <de ...

Posted by ofi on Mon, 09 Mar 2020 00:26:03 -0700

Talk about MQ and how to build a message center based on Spring Boot RocketMQ

Preface Before introducing a technology, it must be clear what problems the technology can solve for the project. Before I understood message queue, I thought that message queue was mainly used to send messages such as SMS and email (asynchronous decoupling), but I found my understanding was wrong on ...

Posted by Ron Woolley on Sun, 08 Mar 2020 23:12:04 -0700

The most suitable Ribbon tutorial for beginners

What is Ribbon    Ribbon is a customer service load balancing tool based on HTTP and TCP, which is implemented based on Netflix Ribbon. It is not deployed independently like Spring Cloud service registry, configuration center and API gateway, but it exists in almost every Spring Cloud microservice. Including the declarative service call provi ...

Posted by washbucket on Sun, 08 Mar 2020 22:52:43 -0700