Multi level cache architecture development 4 (using the pub/sub message mechanism of redis to realize the data synchronization of the first level cache)

Achieve goals: Use redis's pub/sub message mechanism to delete and empty the first level cache, Reason: Because if the application is a distributed system, the data in the first level cache cannot be synchronized, so when the second level cache is clear, Using the message mechanism of redis to realize the data synchronizati ...

Posted on Mon, 11 Nov 2019 17:52:17 -0500 by CloudSex13

Organize | Spring AOP Dry Goods article, with rich illustrations and AOP samples~

Spring AOP is a must for Java interviews. We need to understand the basic concepts and principles of AOP.So what is Spring AOP and why do interviewers like to ask it so much?This article first introduces the basic concepts of AOP, and then according to the principles of AOP, implements a small example of how an interface returns to a uniform fo ...

Posted on Mon, 11 Nov 2019 01:12:23 -0500 by hanwei

java judge time difference month day tool class

I. Java time comparison requirements 1. From time a to time B, how many years, months and days is the difference. For example, from February 2, 2011 to March 2, 2017, the results are as follows: * difference of 6 years, 1 month, 0 day 2. What is the difference between time a and time B, year, month and day? For example, fr ...

Posted on Sun, 10 Nov 2019 10:48:39 -0500 by ChessclubFriend

Getting started with springCloud: Eureka metadata

There are two kinds of Eureka metadata: standard metadata and custom metadata. Standard metadata: host name, IP, port number, status, health check and other information. This information is published in the service registry for calls between services. Custom metadata: user-defined elements that can be accessed by remote clients and processed a ...

Posted on Fri, 08 Nov 2019 15:55:19 -0500 by dionsweet

[springboot development monomer web shop] 3. User registration implementation

Catalog User registration ##Create database ##Generate UserMapper ##Write business logic ##Write user service Userserviceimpl? Finduserbyusername description Userserviceimpl? CREATEUSER description ##Write user controller Usercontroller ා validateusername (username) descrip ...

Posted on Wed, 06 Nov 2019 19:49:19 -0500 by srfdriver22

Wechat payment, everything you want to know is here

Whether it's individuals or enterprises, the best way to realize business is to pay and collect money, except for advertising. How can wechat payment, which we often use, quickly complete technology docking? How to support domestic payment and overseas payment at the same time? How to do cross city redu ...

Posted on Thu, 24 Oct 2019 03:28:08 -0400 by rei

The 17th day of practice

Whole content Export data to excel CSV Export data to excel Export the special adaptation class of excel package com.mini.admin.inner.web.goods.domain.vo; import com.mini.goods.entity.test.GoodsTestDataDetailVO; import lombok.Data; import java.io.Serializable; import java.util.Date; /** * Expo ...

Posted on Wed, 23 Oct 2019 15:39:10 -0400 by dancingbear

Getting started with Spring Boot: integrating Quartz timed tasks

Continuation of this film< Getting started with Spring Boot (8): integrating RabbitMQ message queuing >, refer to< Getting started with basic use of Quartz (version 2.3.0)> spring boot implements timing tasks. In addition to integrating Quartz, you can also directly use the scheduler annotation. It can be done with a simple annotat ...

Posted on Wed, 23 Oct 2019 15:23:02 -0400 by BrentonHale

Redis's PUB/SUB mode

#Redis's PUB/SUB mode redis provides publish / subscribe function The differences between redis and rabbitMQ are as follows: redis publishes and subscribes in the broadcast mode. redis publishes a message, which can be consumed by all consumers. In the rabbitMQ queue mode, a message can be published to inform all subscribers, but there can be ...

Posted on Fri, 18 Oct 2019 03:00:00 -0400 by cgm225

Spring Cloud Series - Implementing Declarative Service Calls with Feign

Last article Hand-held Band You Use Ribbon to Realize Load Balancing on the Client This paper introduces the process of load balancing through Ribbon service invocation, in which the required parameters need to be spliced in the request URL, but too many parameters will lead to the inefficiency of splicing strings. This paper will introduce ...

Posted on Mon, 14 Oct 2019 22:58:49 -0400 by Niruth