Spring boot basic tutorial 2-1-11 RestTemplate integration HttpClient
1 Overview
Http request is essential in server development. In this paper, RestTemplate is used as the facade and HttpClient is used as the implementation to demonstrate the basic Http request example.
2 source code analysis
2.1 add pom.xml dependency
RestTemplate is built in the spring web module, and spring boot is introduced automatically
...
Posted by Whitestripes9805 on Mon, 30 Dec 2019 13:46:27 -0800
Kafka 2.4 release - Introduction to new features (with Java Api Demo code)
new function
Allow consumers to get from the most recent copy
Increase support for incremental cooperative rebalancing for consumer rebalancing protocol
New MirrorMaker 2.0 (MM2), new multi cluster cross data center replication engine
Introducing a new Java authorized program interface
Supports non key connections in KTable
Adminis ...
Posted by tex1820 on Mon, 30 Dec 2019 12:34:49 -0800
Use JavaMail API to send email in Android without using default / built-in application
I'm trying to create a messaging application in Android.
If I use:
Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
This will launch the built-in Android App; I tried to send mail without using this app by clicking the button directly.
#1 building
This is an alternative version, which is also useful for me, wi ...
Posted by michaeru on Sun, 29 Dec 2019 04:50:43 -0800
Using IDEA for the first time, combining mvn and Spring to build a Web project
Build a simple web project by using idea, mvn and spring
Recently, we have been using webstorm for front-end development and verification, but we haven't studied how to integrate back-end development. Now we have time to simply understand the process of front-end and back-end integration. In the middle Experienced person If th ...
Posted by gite_ashish on Sat, 28 Dec 2019 10:36:01 -0800
(15) Integrating spring cloud cloud Architecture - commonservice SSO service building (1)
We have introduced the knowledge points of Spring Cloud and oauth2 in the previous several articles. Today, we will use Spring Cloud and oauth2 to build commonservice SSO service. In this section, we just build the basic platform of commonservice SSO. If you don't talk about it, record the steps directly:
1. Create the maven project commonserv ...
Posted by Beauchy on Fri, 27 Dec 2019 12:28:33 -0800
The way of Hadoop learning Mapreduce program completes wordcount
Test text data used by the program:
Dear River
Dear River Bear Spark
Car Dear Car Bear Car
Dear Car River Car
Spark Spark Dear Spark
1 main categories
(1) Maper class
The first is the custom Maper class code
public class WordCountMap extends Mapper<LongWritable, Text, Text, IntWritable> {
public void map(LongWritable key, Text val ...
Posted by SundayDriver on Fri, 27 Dec 2019 02:19:33 -0800
fastdfs reports java.net.socketimeoutexception: connect timed out exception
Today, I tried to build a fastdfs environment. There is no problem for fastdfs to test the upload function on the server side. The project can also be uploaded normally on the intranet, but the image and other information cannot be uploaded normally on the Internet. The Internet firewall has paid attention to that all the configurations of fast ...
Posted by j-dearden on Thu, 26 Dec 2019 08:01:05 -0800
Configure crontab in Docker container (daocloud + Docker + larave5)
Recently, the project involves the function of a scheduled task, so I have studied the usage of crontab in recent days, and successfully opened this function on my computer according to the related online tutorials
Laravel + crontab
Add crontab configuration
1. Execute command
$ crontab -e
2. Add the following (path/to is the applicatio ...
Posted by lmhart on Wed, 25 Dec 2019 10:38:55 -0800
Talk about rocketmq's expression for retrymessage filter
order
This paper mainly studies the expression for retrymessage filter of rocketmq
MessageFilter
rocketmq-all-4.6.0-source-release/store/src/main/java/org/apache/rocketmq/store/MessageFilter.java
public interface MessageFilter {
/**
* match by tags code or filter bit map which is calculated when message received
* and stored in co ...
Posted by mbarmawi on Tue, 24 Dec 2019 13:27:40 -0800
Centos7.3 Deployment LAMP Architecture Dynamic-Static Separation
1. Dynamic and Static Separation of LAMPWhen an efficient web architecture needs to be built, static-dynamic separation is undoubtedly the best option. This post will write down how LAMP is deployed.
So-called LAMP?LAMP architecture is one of the most mature application modes for enterprise websites. It refers to a set of systems and related s ...
Posted by dsantamassino on Tue, 24 Dec 2019 13:08:44 -0800