(6) Build dubbo distributed platform maven build config configuration project

In the previous article, we introduced build dubbo distributed platform maven build ant parent project. The framework uses maven to build. According to our plan, we need to build all subprojects. Today, we focus on the construction process of ant config configuration file project. Introduction: The purpose of independent ant config project is ...

Posted by adaykin on Fri, 03 Apr 2020 21:35:27 -0700

Mybatis: how to use mybatis

1, Create a project (this article takes the project that Idea builds based on Maven as an example) New->Project                   I choose my local Maven and configuration here       Finally, click Finish       2, Add dependency package in configuration file Add package dependency of Mybatis, JDBC driver and log4j log management ...

Posted by piyushsharmajec on Fri, 03 Apr 2020 18:46:29 -0700

maven multi environment configuration (multi environment configuration, development environment, test environment and development environment are packaged separately)

1. Put the public configuration file in resources, the development environment, production environment and test environment in resources.dev, resources.test and resources.prod respectively 2. Set in pom.xml <build> <resources> <resource> <!--Put the corresponding unique resources(dev,tes ...

Posted by ambivalent on Fri, 03 Apr 2020 07:13:34 -0700

rulebook rule engine example

Forced distribution is often used in performance management, such as: As shown in the figure, this table is applicable to the number of departments with more than five people, for example: Zhang San's department performance is A, It belongs to A department, There are 20 people in the Department, Zhang San ranks the 8th in the Department; A ...

Posted by jackthebookie on Thu, 02 Apr 2020 21:53:21 -0700

Spring cloud Chapter 7: Message Bus

Spring Cloud Bus connects distributed nodes with lightweight message brokers. It can be used for broadcast profile changes or communication between services, or for monitoring. This article is about the implementation of Spring Cloud Bus to notify the change of configuration file of microservice architecture. 1, Preparations This article is ...

Posted by imartin on Thu, 02 Apr 2020 01:50:28 -0700

Custom turntable

In the first part of the new year, I wrote a custom turntable. At present, there are two modes. The specific effects are as follows: Mode 1: pointer mode When the turntable is stopped, the data at the initial position can be obtained As shown in the figure below is the initial state, 0 is the initial position (in the coordin ...

Posted by raghavan20 on Wed, 01 Apr 2020 18:20:37 -0700

Remember a packet scan error

For a long time, I was very distressed about the problem of unable to inject dependency. For similar problems, I made the following summary: 1. For distributed architecture If the prompt indicates that the dependency cannot be injected, consider which project is not referenced. For the war package, all references should be made, for example:   ...

Posted by shams on Wed, 01 Apr 2020 11:06:51 -0700

A study of Ignite CS mode java

In the form of command line, expanding cluster is to increase Server continuously , in many practical business scenarios, we need to implement CS pattern with Ignite, and this article will provide detailed code. Major maven dependencies: <dependency> <groupId>org.apache.ignite</groupId> ...

Posted by Bit343 on Wed, 01 Apr 2020 04:33:11 -0700

[Xiaobai forced] Android voice recording and playback processing -- Audio

AudioH Android voice recording and playback processing, based on mediaplayer and MediaRecorder Realization function 1. Realize Android voice recording function (currently, the package only supports AMR format); 2. Realize Android voice playback function (handset and speaker playback); 3. Realize the caching of netw ...

Posted by vboctor on Wed, 01 Apr 2020 01:46:09 -0700

maven project integrates official wechat payment v3.0.9 (spring boot sample version)

Former by: recently made wechat payment in java, checked the maven warehouse of wechat payment sdk, and found that the latest update was on March 16, 2017, and the version number stayed at 0.0.3: <!-- https://mvnrepository.com/artifact/com.github.wxpay/wxpay-sdk --> <dependency> <groupId>com.github.wxpay</groupId> ...

Posted by edwinlcy on Tue, 31 Mar 2020 20:09:14 -0700