nacos as the configuration center of the project

This project is built by using spring cloud. You need to pay attention to the version when integrating with nacos. Otherwise, you may refresh the configuration when you restart the project, and it cannot be hot updated. The following is the version map: First of all, Download Nacos server, and don't attach the project address of github her ...

Posted by nickdd on Sun, 20 Oct 2019 07:00:45 +0200

Google,Guava local efficient cache

Guva is an open-source public java library of google, similar to Apache Commons. It provides a collection, reflection, caching, scientific computing, xml, io and other tool class libraries.Cache is just one of the modules. Using Guva cache can build local cache conveniently and quickly. [TOC] Building the first cache using Guava First, we need ...

Posted by wgh on Sat, 19 Oct 2019 08:11:04 +0200

Could not flush and close the file system output stream

A Flink program for Kafka data consumption, the Flinon Yarn model, was released in the test and production environments before. It was normal and had no problems. However, after restarting the test environment, it was redistributed again. The error was reported as follows: 2019-07-01 15:19:25,984 INFO ...

Posted by foxden on Thu, 10 Oct 2019 06:09:17 +0200

HttpClient first post s login, in get data

I use httpclient-4.5.1.jar. If the version of httpclient is too low, this method may not be used. It needs to set cookie manually. That method, not discussed for the moment, is mainly to get the returned cookie when landing, and then to fill the value of coolie in the new request header. However, this m ...

Posted by paulmo on Wed, 09 Oct 2019 21:27:04 +0200

Management Request for rocketmq Source Parsing to Acquire the Storage Time of the Earliest Message

Said ahead Management request GET_EARLIEST_MSG_STORETIME for the storage time of the earliest message Source code analysis Enter the method org.apache.rocketmq.broker.processor.AdminBrokerProcessor#getEarliestMsgStoretime to get the storage time of the earliest messages private RemotingCommand getEarlie ...

Posted by Teh Unseen on Wed, 09 Oct 2019 18:29:50 +0200

Spring-boot hot deployment + spring loader plug-in or devtools tools

Spring-boot hot deploymentWay 1 Spring loader plug-in: 1. Adding Dependency on pom.xml to New maven Project <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven- ...

Posted by kid85 on Tue, 08 Oct 2019 15:59:09 +0200

Day4_JDBC-BaseDao Class Optimization

I. analysis. From last article Day3_JDBC - Encapsulation of Addition, Deletion and Change Checks (BaseDao class) using DBUtils third-party tools As you can see, every method in the BaseDao class needs to pass in a type of entity class (that is, JavaBean type). If we inherit the BaseDao class, we tell ...

Posted by bellaso on Tue, 08 Oct 2019 12:16:30 +0200

Transaction Message Source Interpretation of RocketMQ - Client

Background Ali's RicketMQ has been castrated in previous versions and re-added in the new version to solve the problem that small companies are unable to make reliable messaging middleware products. At the same time, RocketMQ also refers to the Kafka implementation, and its performance is very good. Version 2 <dependency> <groupId& ...

Posted by Jenling on Sat, 05 Oct 2019 03:56:16 +0200

MTK Recovery Mode Horizontal Screen Modification (for 6.0 + 8.1)

Before modification After modification 6.0 Recovery Mode Horizontal Screen Modification Method Modification of relevant documentsbootable\recovery\minui\Android.mkbootable\recovery\minui\mt_graphic_rotate.cppbootable\recovery\minui\mt_graphic_rotate.hbootable\recovery\minui\graphics_fbdev.cppbootable\recovery\minui\minui.h 1. Add mt_graphic_r ...

Posted by Mysticated on Fri, 04 Oct 2019 13:22:08 +0200

Talk about dubbo's Connection Ordered Dispatcher

order This article mainly studies dubbo's Connection Ordered Dispatcher. ConnectionOrderedDispatcher dubbo-2.7.3/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/transport/dispatcher/connection/ConnectionOrderedDispatcher.java public class ConnectionOrderedDispatcher implements Dispatcher { public static final Stri ...

Posted by petrosa on Fri, 04 Oct 2019 05:57:59 +0200