Flume Monitoring

Flume, as a log collection tool, shows a very powerful ability in data collection. Its three components, SOURCE, SINK and CHANNEL, are used to complete the process of receiving, caching and sending data, which has a perfect fit. But here, we are not talking about how good Flume is or what advantages Flume has. We are talking ab ...

Posted on Sat, 02 Feb 2019 16:33:16 -0800 by nobru

Electron+React+Ant-Design Construction Initialization Application

Reference resources: https://www.imooc.com/article/39978 https://www.jianshu.com/p/20817ba6041d Electron: Project Construction as Native Support React: As a front-end interface framework Ant-Design as UI Library Install Electron Use npm for global installation, because electron has its own command line tools, so use global ins ...

Posted on Sat, 02 Feb 2019 12:12:15 -0800 by jeev

@ Controller Advice intercepts exceptions and handles them uniformly

In spring 3.2, the @Controller Advice annotation was added, which can be used to define @ExceptionHandler, @InitBinder, @ModelAttribute, and applied to all @RequestMapping. I. Introduction Create MyController Advice and add the @Controller Advice annotation. package com.sam.demo.controller; import org.springframework.ui.Model; import or ...

Posted on Sat, 02 Feb 2019 02:09:17 -0800 by BSkopnik

Chapter 5 of SpringBook from Introduction to Abandonment: Unified exception handling

In the normal development and testing process, we often see the following error page, which is the default error mapping page provided by SpringBoot. If the page is passed directly to the user, it will be very unfriendly. Therefore, we usually need to implement custom exception prompts. Create a global exception handling class ...

Posted on Fri, 01 Feb 2019 21:51:15 -0800 by drdapoo

js array traversal of interview questions

Array traversal in js is often used in projects. Here we compare several methods. for loop: the highest rate of use, but also the most basic way of traversal. let arr = ['a','b','c','d','e']; for (let i = 0, len = arr.length; i < len; i++) { console.log(i); // 0 1 2 3 4 console.log(arr[i]); //a b c d e } forEach() loop: T ...

Posted on Fri, 01 Feb 2019 14:06:15 -0800 by dawnrae

Build a project using gulp automation build tool

Gulp is an automated build tool that allows you to easily perform common tasks during project development. Here is a record of the basic use of gulp. 1. First, make sure that node is installed, NPM (node-v/npm-v view installation version) and cnpm can be installed at the same time. Domestic access will be much faster, but some ...

Posted on Fri, 01 Feb 2019 14:03:15 -0800 by WeddingLink

Multithread Encyclopedia of Bad Things

Crawl the encyclopedia section of Gongshi, assuming that the URL of the page is: http://www.qiushibaike.com/8hr/page/1 Requirement 1. Use requests to get page information and XPath / re to extract data 2. Get the user's Avatar link, user name, paragraph content, number of comments and comments in each post 3. Save to json file Queue (Queue ...

Posted on Fri, 01 Feb 2019 13:51:15 -0800 by quicknk

leaflet loads GeoServer's WFS service

Geserver can integrate well with ol. Geserver is a good open source server. It is free and open source. Although it is not as good as ArcGerser in use, it is open source. The main framework of leaflet supports loading wms services. There is no WFS service. It needs to use a WFS plug-in to load WFS, but there are too many restr ...

Posted on Fri, 01 Feb 2019 12:27:15 -0800 by blackcell

Elastic search - learning records (2)

For your own study notes only, please move on for details. es Official Documents 9. Recording - --- sql plug-in After installing the sql plug-in, there are two ways to query data Or use _sql+"sql query statement" directly in url curl -XPOST http://172.16.150.149:29200/_sql?pretty -d "SELECT * FROM facebook" { ...

Posted on Fri, 01 Feb 2019 01:42:15 -0800 by squiggerz

Build react+antd project with web pack

At present, there are many courses about react and antd on the network. In the construction stage, most scaffolding tools such as create-react-app, dva are used to build. Although the tools are convenient, they always feel that they can not really master this technology. So they try to build a project from scratch. 1. environm ...

Posted on Fri, 01 Feb 2019 01:06:15 -0800 by Errant_Shadow