Using activiti in the Spring Boot project

Check activiti when creating a new springBoot project, or add the following dependencies to an established springBoot project: <dependency> <groupId>org.activiti</groupId> <artifactId>activiti-spring-boot-starter-basic</artifactId> <version>6.0.0</version> </dependency>   Data source and ...

Added by mortimerdude on Sat, 21 Dec 2019 10:44:20 +0200

Redis distributed lock mechanism - technical support for distributed cluster deployment

There are three ways to implement the distributed lock: 1. Optimistic database lock; 2. Redis based distributed lock; 3. ZooKeeper based distributed lock. This blog will introduce the second way to implement distributed locks based on redis. Although there are various blogs about the implementation of redis distributed lock on the Internet, the ...

Added by RealDrift on Fri, 20 Dec 2019 09:50:59 +0200

The way of springboot for beginners, integrating log4j2 logs

0. Preface Log recording is essential to the system. The commonly used log components in spring boot include log4j, logback and log4j2. Logback is the default of spring boot and has been brought by itself. You can choose log4j2, and others don't need to pay attention; 1, Integrated log4j2 log component 1. Remove the default logback log frame ...

Added by PerfecTiion on Thu, 19 Dec 2019 20:47:41 +0200

Implement a better property copy framework based on asm than spring beanautils

Bean-Mapping In daily development, it is often necessary to assign the properties of one object to another. There are many common tools, but they are not concise or powerful enough. Spring bean utils, which we often use, has good performance, but not enough features. Bean-Mapping It provides many rich features for daily development. If you are ...

Added by DapperDanMan on Wed, 18 Dec 2019 10:40:28 +0200

Spring Cloud Distributed Micro Service Cloud Architecture Part 9: Service Link Tracking (Spring Cloud Sleut)

This article focuses on the service tracking component zipkin, which Spring Cloud Sleuth integrates. 1. Introduction Add sleuth to the classpath of a Spring Boot application (see belowfor Maven and Gradle examples), and you will see the correlation databeing collected in logs, as long as you are logging requests. --- From the official website ...

Added by ponies3387 on Wed, 18 Dec 2019 05:21:25 +0200

Spring Cloud Distributed Micro Services Cloud Architecture Part 8: Message Bus

Spring Cloud Bus connects distributed nodes with lightweight message proxies.It can be used to broadcast profile changes or communication between services, or to monitor.This article describes using Spring Cloud Bus to implement configuration file changes that notify the microservice architecture. I. PreparationsThis article is based on the pr ...

Added by Aravinthan on Wed, 18 Dec 2019 05:16:03 +0200

Cannot generate spring-configuration-metadata.json file in IntelliJ Idea with Kotlin

Problem description In Baidu search keywords, found Stack Overflow related problems spring-configuration-metadata.json file is not generated in IntelliJ Idea for Kotlin @ConfigurationProperties class Original link: https://stackoverflow.com/questions/37858833/spring-configuration-metadata-json-file-is-not-generated-in-intellij-idea-for-ko T ...

Added by TRB on Mon, 16 Dec 2019 16:51:48 +0200

Spring boot reading configuration files (multiple yml s)

When learning spring boot (in this case, when integrating mybatis+druid), because there are too many configurations written in a single yml configuration file, it is obviously redundant, so it is configured separately. However, when loading the druid database configuration information, it is found that the relevant parameters cannot be read (it ...

Added by windjohn on Sun, 15 Dec 2019 23:10:18 +0200

Daily Record Internet Items - - 5(Zuul, Filter, Integrated Ribbon,Hystrix)

6. Zuul Gateway 6.1 Introduction Zuul is the unified gateway to our services Whether it's a request from a client (PC or mobile) or an internal call to a service. All requests for services go through the Zuul gateway, which then implements authentication, dynamic routing, and so on. 6.2 Getting started with Zuul Actual path: http://loc ...

Added by I WanT To Code PHP on Sat, 14 Dec 2019 09:50:30 +0200

Record the openId and token obtained by wechat (java implementation)

I've been writing wechat related interfaces recently. I'm really.... hey First write a url request tool class import java.net.MalformedURLException; import java.net.URL; import java.net.URLConnection; public static String sendGet(String url, String charset, int timeout) { String result = ""; try { URL u = ...

Added by shaunrigby on Fri, 13 Dec 2019 21:14:44 +0200