elasticsearch Chinese word segmentation plug-in IK analyze

Elastic search version 7.3 Install Chinese word segmentation plug-in The corresponding version of plug-in should be the same as that of elastic search. Download address of plug-in versions https://github.com/medcl/elasticsearch-analysis-ik/releases Install using the elasticsearch native script ./bin/elasticsearch-plugin install https ...

Posted on Thu, 17 Oct 2019 02:05:15 -0400 by Ryaan

Upload and download spring MVC files (detailed explanation)

I. project structure display and precautions II. File upload 1. Upload front-end page building 2. Controller development See code Notes for details: III. file download 1. File download front-end page construction2. Controller development IV. file upload and download controller development code If the ab ...

Posted on Wed, 16 Oct 2019 11:46:31 -0400 by 947740

Talk about the server httpagent of nacos client

order This paper mainly studies the server httpagent of nacos client HttpAgent nacos-1.1.3/client/src/main/java/com/alibaba/nacos/client/config/http/HttpAgent.java public interface HttpAgent { /** * start to get nacos ip list * @return Nothing. * @throws NacosException on get ip list error. */ void start() throws Nac ...

Posted on Wed, 16 Oct 2019 11:02:26 -0400 by w4designs

base64 encoding large files

When you are working on a project, you need to convert the file to base64 encoding and store it in the file. When the file is converted to base64 encoding, the file will be read into memory, base64 encoded and output to the file. Code entry:    FileInputStream stream = new FileInputStream("D:\\desktop\\Programmer-The Fourth Edition.pdf"); ...

Posted on Tue, 15 Oct 2019 12:37:00 -0400 by Hurklefish

Python crawler: urllib Library

Usage of urllib urllib is Python's built-in HTTP request Library Include: urlib.request: request module urlib.error: exception handling Urlib. parse url: URL parsing urllib.robotparser: robots.txt parsing module A basic request # Import urllib Library import urllib.request # Open the URL link and ...

Posted on Mon, 14 Oct 2019 13:33:13 -0400 by ecxzqute

python realizes file batch encoding conversion

Cause: During my junior year as a Japanese exchange student, I took a C language image processing programming course and downloaded sample s on the website of matching books. But because the Ubuntu 18.04 system I used defaults to use utf-8 encoding, and the source code of the file is Shift_JIS encoding, the document annotations are scrambled. W ...

Posted on Mon, 14 Oct 2019 10:27:22 -0400 by BigDaddy13

Glide caching process

This article was first published on vivo Internet Technology Wechat Public Number. Links: https://mp.weixin.qq.com/s/cPLkefpEb3w12-uoiqzTig Author: Lian Lingneng There are many solutions for image loading on Android, but Glide is officially recognized. Glide provides a simple and easy-to-use api, and the whole framework is easy to expand. For ...

Posted on Mon, 14 Oct 2019 07:33:14 -0400 by gotserv

Glide caching process

This article was first published on vivo Internet Technology Wechat Public Number. Links: https://mp.weixin.qq.com/s/cPLkefpEb3w12-uoiqzTig Author: Lian Lingneng There are many solutions for image loading on Android, but Glide is officially recognized. Glide provides a simple and easy-to-use api, and the whole framework is easy to expand. ...

Posted on Sun, 13 Oct 2019 23:59:18 -0400 by chuddyuk

web.config configuration file for. NET Core 2.0 migration techniques

Original text: web.config configuration file for. NET Core 2.0 migration techniques As you all know. NET Core no longer supports the original web.config configuration file, but instead json or xml configuration file. The officially recommended way to configure a project is to use the appsettings.json configuration file, which may be unacceptabl ...

Posted on Sun, 13 Oct 2019 14:23:16 -0400 by genistaff

Several Usage Case Loading Methods in unittest Unit Testing Framework

Unit test module is a unit test module of Python, which can be used for unit test. unittest module contains the following sub-modules: Test case: TestCase Test Set: TestSuite Loading use cases: TestLoader Execution case: TextTest Runner First, we write a simple mathematical method class of addition, subtraction, multiplication and divisi ...

Posted on Sun, 13 Oct 2019 00:41:48 -0400 by kts