Spring Boot uses Redis to publish and subscribe messages
brief introduction
Today, the senior students will teach you how to use Spring Data's support for Redis to realize the publish and subscribe mechanism of messages. Publish and subscribe is a typical asynchronous communication model, which can fully decouple the publisher and subscriber of messages. In our example, we will use StringRedisTempla ...
Added by massimoGornatti on Wed, 05 Jan 2022 06:01:31 +0200
"Spring integration component" redis(Spring Data Redis 2.X)
quick get start
pom dependency
<!-- spring-data-redis (Attention and cluster Also pay attention to the version problem with spring Version of)-->
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-redis</artifactId>
<version>2.1.9.RELEASE</version>
</de ...
Added by erfg1 on Tue, 04 Jan 2022 23:46:33 +0200
Java and Spring annotations - insight into annotations
Pay attention to copyright. If you want to reprint, please attach the author and link
Author: Joshua_yi
Link: https://blog.csdn.net/weixin_44984664/article/details/122088060
1, Annotation
Annotation is also called metadata
(1) Role of annotations
We can analyze the function of annotation from the object of annotation
public enu ...
Added by MattMan on Tue, 04 Jan 2022 23:18:56 +0200
framework learning notes Day12 --- spring MVC
Restful Style Introduction
WebAPI
If a URL returns data instead of HTML, the URL is a web API (web interface) Restful
A way to access the web API in the Rest style Restful style
① Different CRUD operations adopt different request modes② The background response data is in JSON format
HiddenHttpMethodFilter filter
summary
The ...
Added by fr0mat on Tue, 04 Jan 2022 15:55:19 +0200
[Spring transaction details] - 2 Considerations for transaction application
preface
Go on [detailed explanation of Spring transactions] - 1 Case demonstration of transaction propagation In this article, let's take a look at the specific use of transactions.
It is very simple to start transaction management through Spring. Two methods are supported by default, one is programmatic transaction and the other is decla ...
Added by DyslexicDog on Tue, 04 Jan 2022 15:42:46 +0200
Personal summary of Spring transactions
Personal summary of Spring transactions1, IntroductionAlthough there have been a lot of information about Spring's transaction mechanism, it is often planted in the pit in actual use. I believe this is the experience or past experience of most programmers, so this article will make a complete summary, Use the way of combining theory with actual ...
Added by redbullmarky on Tue, 04 Jan 2022 13:27:11 +0200
Deploying Spring Native based microservices using Knative
In this article, you will learn how to run Spring Boot microservices, which communicate with each other on Knative. I also showed you how to use GraalVM to prepare a native image of a Spring Boot application. We will then run it on Kubernetes using the Skaffold and jibsave plug-ins.
On Knative, you can run any type of application, not just fun ...
Added by PHPAnx on Tue, 04 Jan 2022 12:25:48 +0200
SpringBoot learning notes 11 web reactive web application
Based on the official spring documentation, the official address is: Spring Boot_Web
Spring Boot is very suitable for web application development. You can create a self-contained HTTP server using embedded Tomcat, Jetty, Undertow, or Netty. Most web applications use the Spring Boot starter web module to start and run quickly. You can also ch ...
Added by grungefreak on Tue, 04 Jan 2022 07:47:23 +0200
Password encryption and verification in spring security login
PasswordEncoder is an interface provided by Spring Security. It is called password parser. This interface is mainly used to process passwords. The source code is as follows:
public interface PasswordEncoder {
/**
* Encode the raw password. Generally, a good encoding algorithm applies a SHA-1 or
* greater hash combined with an 8-byte or g ...
Added by cyanblue on Tue, 04 Jan 2022 00:30:40 +0200
Imitating mybatis, OpenFeign implements the springboot custom scanning interface and injects the proxy class
explain
When you use mybatis or openFeign, you only define an interface class without an implementation class. You can inject the interface into the service and call the method return value. An interface has no implementation class. Why can it be instantiated and handed over to spring management. How is mybatis and OpenFeign implemented? Look ...
Added by chet139 on Mon, 03 Jan 2022 23:51:34 +0200