Iv-08 practice of uploading micro service files

Project introduction Business description File upload based on Spring Cloud Alibaba solution Initial architecture design The front end and back end are separated, and the service design is based on the spring cloud alibaba solution Initial architecture design, subsequent addition of Gateway project and authentication project Project crea ...

Posted by alexz on Fri, 24 Sep 2021 05:03:29 -0700

(35) spring cloud of java Spring Cloud+Spring boot+mybatis enterprise rapid development architecture - using Zuul to realize fault tolerance fallback function

Zuul's main function is forwarding. In the forwarding process, we can't guarantee that the forwarded service is available. At this time, fault tolerance mechanism and fallback mechanism are needed. Recommended distributed architecture source code  fault tolerance Fault tolerance simply means that when a service is unavailable, it can switch t ...

Posted by jbradley04 on Fri, 24 Sep 2021 03:16:15 -0700

Springboot integrates ElasticSearch 7.14.1. What is ElasticsearchRestTemplate?

Start with a case pom <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> ...

Posted by ariliquin on Fri, 24 Sep 2021 00:49:01 -0700

[Spring Boot] Spring Boot Listener | Servlet listener

This page will introduce an example of the Spring Boot listener. We can register Servlet listeners in Spring Boot using ServletListenerRegistrationBean or @ Component or @ ServletComponentScan. The ServletListenerRegistrationBean class registers the Servlet listener as a Spring Bean. @The ServletComponentScan annotation scans servlet lis ...

Posted by The Midnighter on Fri, 24 Sep 2021 00:44:56 -0700

Spring Boot Note 6 - SMS verification code login for user authentication and authorization

In the previous article, spring security, oauth2 and JWT were used to realize the most commonly used account and password login function. However, there are at least two login methods in the current external online system, and the most commonly used is the SMS verification code. This method has many advantages, such as naturally knowing the use ...

Posted by kingsol on Thu, 23 Sep 2021 07:28:52 -0700

How does SpringBoot copy objects? Old birds play like this!

Hello, I'm misty. Today, we bring the fourth article of the old bird series of SpringBoot to talk about how to gracefully implement object replication in daily development. First, let's see why object replication is needed? Why do I need object replication As mentioned above, it is the most common three-tier MVC architecture model in our ...

Posted by amma on Wed, 22 Sep 2021 22:53:43 -0700

AOP in-depth understanding and Bean loading process

Spring series courses - AOP programming Chapter one: static agent design pattern 1. Why do you need agent design pattern 1.1 problems In Java EE layered development, which layer is the most important for us DAO ---> Service --> Controller JavaEE In layered development, the most important thing is Service layer What code is incl ...

Posted by ericw on Wed, 22 Sep 2021 10:50:32 -0700

springboot integrates RabbitMQ messaging middleware

Springboot integrates RabbitMQ Learning reference website Installing RabbitMQ 1. Install Erlang language pack https://www.erlang.org/downloads [official website download address] 2. Install rabbitMq https://www.rabbitmq.com/download.html The installation path cannot have Chinese, otherwise the path cannot be found 3. Restart rabbitmq ...

Posted by Rykin on Wed, 22 Sep 2021 07:25:18 -0700

Basic usage of springboot springdataelasticsearch

Basic usage of springboot springdataelasticsearch introduce Spring Data Elasticsearch is a sub module under the Spring Data project. Check the official website of Spring Data: http://projects.spring.io/spring-data/ The mission of Spring Data is to provide a unified programming interface for various data access, whether it is a relational data ...

Posted by The Merg on Tue, 21 Sep 2021 16:31:24 -0700

Implementation principle of dynamic data source - SpringBoot

Dynamic data source By using the annotation mode of the method, you can switch the database source used by the method. The method is enhanced through the spring section. Therefore, our construction steps are annotation - Section - data source principle - Implementation (in no order, only the logic of this article) Learn how to use ...

Posted by michealholding on Tue, 21 Sep 2021 01:40:36 -0700