Using Zuul in SpringBoot
Zuul provides the function of service gateway, which can realize load balancing, reverse proxy, dynamic routing, request forwarding and other functions.Most of Zuul's functions are implemented through filters. In addition to the standard four filter types, it also supports custom filters.
Using the @ EnableZuulProxy annotation, the Spring cont ...
Added by TobesC on Wed, 20 Nov 2019 14:41:00 +0200
Spring framework learning - build the first spring project
Step 1: download the Spring development package.
Official website: https://spring.io/ Download address: https://repo.spring.io/libs-release-local/org/springframework/spring/
spring-framework-3.0.2.RELEASE-dependencies and spring-framework-4.2.4.RELEASE-dist extract the second one, and extract the directory:
Step 2: build a project ...
Added by phppaper on Mon, 18 Nov 2019 21:30:50 +0200
Talk about rocketmq's consumeConcurrentlyMaxSpan
order
This paper focuses on rocketmq's consumeConcurrentlyMaxSpan
consumeConcurrentlyMaxSpan
rocketmq-client-4.5.2-sources.jar!/org/apache/rocketmq/client/consumer/DefaultMQPushConsumer.java
public class DefaultMQPushConsumer extends ClientConfig implements MQPushConsumer {
private final InternalLogger log = ClientLogger.getLog();
//. ...
Added by mr.rum on Mon, 18 Nov 2019 19:17:12 +0200
28. Spring cloud integration gateway zuul entry 2
Public address: java paradise
The previous article explained the path URL forwarding method of zuul gateway; this article explained the path serviceid forwarding method. Path serviceid needs to be used in the registration center eureka
1. Create a new project SC zuul consumer, which mainly provides one Controller and two interfa ...
Added by JasperBosch on Mon, 18 Nov 2019 16:57:51 +0200
Maven assembly plugin of < maven>maven plug-in
What
It is a standard plug-in for packaging tasks in maven
The main purpose of the Assembly plug-in is to allow users to assemble project output with its dependencies, modules, site documents, and other files into a distributable archive.
Why
Other plug-ins are not easy to use and each has its own short board. For example, you can't make a ...
Added by kenhess on Sat, 16 Nov 2019 21:56:47 +0200
Feign:REST Client for SpringCloud
In the Spring Cloud cluster, communication between roles is based on REST services. When invoking services, you need to use a REST client, which is commonly used. In addition to using the RestTemplate that Spring comes with, you can also use another REST client: Feign.
When using Feign, you can decorate the interface with your own or third-par ...
Added by bigdaddysheikh on Sat, 16 Nov 2019 07:51:47 +0200
Spark custom external data source
Background: sometimes we need to define an external data source and use spark sql to process it. There are two benefits:
(1) after defining the external data source, it is very simple to use, and the software architecture is clear. It can be used directly through sql.
(2) it is easy to divide modules into layers and build them up layer by lay ...
Added by kinaski on Tue, 12 Nov 2019 21:13:18 +0200
Remember the pit encountered in using Shiro redis open source plug-in once
Shiro redis is an open-source plug-in of Daniel on the Internet (github address: https://github.com/alexxiyang/shiro-redis )Recently, the following errors are always reported when using it (version 3.1.0):
We need a field to identify this Cache Object in Redis. So you need to defined an id field which you can get unique id to id ...
Added by philhale on Mon, 11 Nov 2019 20:54:45 +0200
ab stress test under linux
ab introduction
ab is the abbreviation of Apache bench command
ab is apache's own stress testing tool. ab is very practical. It can not only test the web site access stress of apache servers, but also stress test other types of servers. For example, nginx, tomcat, haproxy, etc
Principle of ab
Principle of ab: the ab command will cr ...
Added by josephman1988 on Sun, 10 Nov 2019 23:48:05 +0200
Add Documents Using Go
brief introduction
swagger start
Write documentation
Function
summary
Code for current section
brief introduction
Documentation is essential for API services.
Documents, however, are annoying, especially synchronous updates. If you choose handwritten documents, you often forget to update them.Or in the early stages of high-speed development, ...
Added by ztkirby on Sun, 10 Nov 2019 03:16:06 +0200