Thinking about distributed jobs
Introduction
When cleaning Github, we found a simple distributed task distribution system written before ClawHub/task-distribution , using zk's select master and queue, the scheduler uses spring's ThreadPoolTaskScheduler, and the task supports cron expression.
This reminds me that I also encapsulated Quartz before. What I did at that time was ...
Posted by renegade33 on Sat, 07 Dec 2019 06:10:21 -0800
Java bytecode 1-Agent easy to use
I. overview
Java Agent is introduced from JDK 1.5 and later. Its function is equivalent to an interceptor before your main function, that is, before executing the main function, execute the code in the Agent first.
The Agent code runs in the same JVM as your main method and is loaded by the same classloader and managed by the same security po ...
Posted by Azazeal on Fri, 06 Dec 2019 20:19:56 -0800
Service invocation of spring cloud (feign)
Preface
The previous article described how to use the RestTemplate of Ribbon for service calls. In addition to this way of service invocation, it can also be called through Feign. This article is a brief introduction to how to use Feign for service invocation. Make changes based on the items used in the previous article.
Feign use process
1.po ...
Posted by pessi on Fri, 06 Dec 2019 18:41:39 -0800
Introduction guide to spring cloud boot RocketMQ
MAVEN Configuration
Producer Configuration
application.yml Configuration
application.properties configuration
Define Output Binding
Turn on Binding (turn on MQ)
send message
Consumer Configuration
application.yml Configuration
Define Input Binding
Turn on Binding (turn on MQ)
Accept message
...
Posted by will83 on Fri, 06 Dec 2019 00:08:23 -0800
Using uwolfer Gerrit rest java client to get Gerrit information
When using Gerrit to do code management tools, it is inevitable to call Gerrit's API.
Gerrit rest api
Let's take a look at an example and experience the interaction process of the gerrit rest api:
The requests are as follows: changes is an API, the q string must be familiar to gerrit users, and n is the number of restrictions:
GET /changes/?q=s ...
Posted by Reef on Thu, 05 Dec 2019 19:32:55 -0800
Integrating spring cloud cloud service architecture - commonservice Eureka project construction process
For the eureka project of HongHu cloud, we do the following construction. The whole construction process is very simple. I will record every step of the construction process, hoping to help you:
1. Create a maven project named particle common Eureka and inherit the particle common service. The specific pom.xml configuration file is as follows: ...
Posted by jandrews on Thu, 05 Dec 2019 11:00:35 -0800
[MyBatis] reverse engineering use
Using mybatis reverse engineering, it is very convenient to automatically map with tables in the database, and generate mapper.xml and mapper interface.
Here I use IDEA to demonstrate through maven.
Step 1: configure the pom.xml fileThe corresponding shelf package is introduced. The emphasis of reverse engineering is on the mybat ...
Posted by luddeb on Wed, 04 Dec 2019 15:53:41 -0800
maven multi warehouse configuration company warehouse and Ali warehouse
For the company's intranet private server warehouse, the private server warehouse cannot access the Internet. At this time, the private server warehouse cannot act as an agent for Alibaba's maven warehouse. Our maven needs to configure multiple warehouses:
conf/settings.xml configuration file in maven Directory:
1. Create a new profile in the p ...
Posted by sameveritt on Wed, 04 Dec 2019 08:17:31 -0800
Java drawing graphics in PPT
Microsoft PowerPoint can support the insertion of various types of graphics in slides and can set graphic fill, line color, graphic size, location, etc. The following will demonstrate the method of drawing graphics in PPT through Java programming.
Tools: free flame.presentation for Java V 2.2.3
Jar file import method 1: through Download offic ...
Posted by The.Pr0fess0r on Tue, 03 Dec 2019 13:22:58 -0800
About the use of FeignClient
A simple example of using FeignClient is as follows:
1. Add maven dependency
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
<version>2.0.2.RELEASE</version>
</dependency>
<dependency>
<groupId& ...
Posted by andrewgauger on Tue, 03 Dec 2019 08:50:19 -0800