Three main ways of implementing message filtering in Spring Cloud Stream

Message filtering Message filtering means that consumers do not want to consume all the messages in the topic, but only some specific messages. Selecting these specific messages from topic is called message filtering. Message shunting can be achieved through message filtering, such as producer-produced messages. Headers may be different, so we ...

Posted by abhishekphp6 on Sun, 11 Aug 2019 04:16:22 -0700

springboot integrates oss to upload, view, delete and download files

springboot integrates oss to upload, view, delete and download files 1. What is Object Storage OSS? Answer: Aliyun Object Storage Service (OSS) is a massive, secure, low-cost and highly reliable cloud storage service provided by Aliyun. Its data design persistence is not less than 99.999999% (129), ...

Posted by smurl on Sat, 10 Aug 2019 07:07:28 -0700

spring event mechanism

In the process of software development, sometimes we encounter the need to decouple the specific business so that each module is only responsible for the corresponding processing logic. For example, in our abstract business logic, there is a driver responsible for the destination. Now our business syste ...

Posted by w00kie on Wed, 07 Aug 2019 00:43:03 -0700

Tree data used in projects

1. Introduction In some management systems, it is commonly used. Some tree data, such as department organization and authority, are used to generate tree data. Some tree data generation tools need to be written. Generally, recursive methods are used, and poor performance may lead to stack explosion. After analysis and reflection, I decided not ...

Posted by benn600 on Tue, 30 Jul 2019 16:59:29 -0700

Load Balancing Component for Spring Cloud Alibaba - Ribbon

load balancing We all know that in a micro-service architecture, micro-services always need to call each other to fulfill some of the requirements of the combined business.For example, assembling order details data, since order details contain user information, the order service must invoke the user service to obtain user information.To make r ...

Posted by staples27 on Sat, 27 Jul 2019 14:13:56 -0700

Log4j2 implements different levels of log output from different threads to different files

Java Logging Framework As a Java programmer, it must be inseparable from the log framework. Now the best Java log framework is Log4j2, not one of them. According to the official test, Log4j2's asynchronous log performance is better in multi-threaded environment. In asynchronous logging, Log4j2 uses separate threads to perform I/O operations, w ...

Posted by kristoff on Fri, 05 Jul 2019 14:07:46 -0700

java Reptiles Series I - Introduction to Reptiles

1. overview What does the java crawler series contain? Introduction to java crawler framework webmgic Using webmgic to crawl the movie resources in http://ady01.com (action movie list page, movie download address, etc.) Using webmgic to crawl course resources for geek time (article series and video series) The main contents of this article ar ...

Posted by ldsmike88 on Wed, 08 May 2019 21:42:39 -0700

What pits are encountered in JAVA distributed development

1. Trampling Records in Spring Use image Spring uses multiple data sources through annotations Pit: @Autowire is automatically injected by byType, while @Resource is automatically injected by byName by default, @Primary is the preferred choice. For example, in a project there are two Redis sources, dataRedisTemplate and red ...

Posted by gabo0303 on Sat, 27 Apr 2019 05:30:36 -0700

Using lombok to write elegant Bean objects

Using java to write code, nine out of ten are writing Java classes to build Java objects. lombok has said a lot before, but after so many years of use, it still feels like there are many skills to use. Undoubtedly, using lombok, the java code is elegant, and the class created by using Lombok is the same as that created by ordinary java encoding ...

Posted by Gasolene on Mon, 22 Apr 2019 11:36:35 -0700

Using Spring Data Neo4j(SDN)

Using Spring Data Neo4j Reference documents: https://docs.spring.io/spring-data/neo4j/docs/5.0.7.RELEASE/reference/html/#reference Use of SDN in Spring Boot The following can be added to the pom dependency: Note: SDN uses Bolt Driver connections by default. To use embedded driver or HTTP driver, you need to add depende ...

Posted by powerofphp on Mon, 04 Feb 2019 21:09:18 -0800