spring boot integrated redis

It is convenient to integrate common NO SQL with Springboot following the principle of "convention is greater than configuration". This example makes a simple demo with redis, using Redis's set and get commands. Introduce dependency packages for redis. <dependency> <groupId>or ...

Posted by dcj1978 on Sun, 05 Jul 2020 09:08:30 -0700

spring boot integrated redis

It is convenient to integrate common NO SQL with Springboot following the principle of "convention is greater than configuration". This example makes a simple demo with redis, using Redis's set and get commands. Introduce dependency packages for redis. <dependency> <groupId>or ...

Posted by neverett on Sun, 05 Jul 2020 09:08:33 -0700

javaSpring uses maven's initial build step java project

1. Modify in maven projectPom.xmlIntroduce dependencies on spring.<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 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com ...

Posted by jason102178 on Sun, 05 Jul 2020 07:40:05 -0700

The deepest analysis of spring boot MVC automatic configuration failure in the whole network

preface I didn't plan to write this article, but after reading the core principles of SpringBoot, I suddenly thought of the MVC automatic failure problem encountered in the previous development. Although there are many articles and official documents on the Internet explaining the reasons, I still want to have a look at it in person. What I tho ...

Posted by pr0x on Mon, 29 Jun 2020 21:05:23 -0700

Spring Cloud Gateway uses simple configuration

Basic use of Spring Cloud Gateway Spring Cloud Gateway is the second generation gateway framework officially launched by Spring Cloud, replacing Zuul gateway. Gateway as a traffic, plays a very important role in micro service system. The common functions of gateway include routing and forwarding, author ...

Posted by POGRAN on Mon, 29 Jun 2020 20:10:52 -0700

Getting started with RocketMQ to ground transaction message & sequential message

Next: RocketMQ entry to earth (1) novice can also understand the principle and actual combat! 1, Origin of transaction message 1. Case study Quoting official shopping cases: At the same time, you need to add 100 points to the downstream account to ensure that 100 yuan will be deducted from the system. Account system and points system are two in ...

Posted by cyberdwarf on Mon, 29 Jun 2020 19:54:31 -0700

Custom request header of RestTemplate in SpringBoot WEB Series

User defined request header of RestTemplate in WEB Series The last article introduced the basic usage posture of RestTemplate, and at the end of the paper, some extended advanced usage posture were proposed. This article will focus on how to carry user-defined request header, such as setting user agent and carrying Cookie Get carry request ...

Posted by mysterbx on Mon, 29 Jun 2020 18:51:26 -0700

@What does the Transaction annotation not work?

Take a look at the simplest example of CGLIB, and feel how AOP is achieved? /** * Created with vernon-test * Description: * User: chenyuan * Date: 16/4/25 * Time: 9:25 am */ public class Target { public String execute() { String message = "----------test()----------"; System.out.println(message); return message ...

Posted by stylefrog on Mon, 29 Jun 2020 03:15:21 -0700

The eighth day of health management project (background login to realize authentication and authorization, graphic report echards)

We have learned how to use the Spring Security framework. In this chapter, we need to apply the Spring Security framework to the background system for permission control. Its essence is authentication and authorization. To carry out authentication and authorization, we need to support the seven tables i ...

Posted by leonglass on Mon, 29 Jun 2020 00:12:28 -0700

Why is enumeration recommended?

Enumeration is a new data type in JDK 1.5. With enumeration, we can well describe some specific business scenarios, such as spring, summer, autumn and winter in a year, Monday to Sunday in a week, and various colors, as well as some state information, such as error codes. Enumeration type not only exists in Java language, but also can be found ...

Posted by pinxxx on Sat, 27 Jun 2020 23:12:24 -0700