Java crawler, implementation of information capture

For reprint, please indicate the source: http://blog.csdn.net/lmj623565791/article/details/23272657 Today, the company has a need to do some data grabbing after the specified website query, so it took some time to write a demo for demonstration. The idea is simple: you access links through Java, get html strings, and then parse links an ...

Posted by Plasma on Sat, 18 May 2019 18:34:15 -0700

jni static registration pure gradle compilation of those things

First, we register a static jni function and write the following code in the entry java class: static { System.loadLibrary("test"); } Then the header file is generated with javah at the terminal. If the command is not found in the report, the environment variable is configured.Find out where jdk is under mac, as shown in the figure ...

Posted by jaco on Sat, 11 May 2019 07:18:48 -0700

spring Learning 6 - Assembly Beans (Automatic Assembly Beans)

spring provides three main assembly mechanisms when assembling bean s: Automated assembly of bean s Assembling bean s with java code Assembling bean s through xml Automated assembly of bean s Steps: (1) Create bean s package com.study; import org.springframework.stereotype.Component; @Component public class Book { ...

Posted by tlchung on Fri, 10 May 2019 08:00:52 -0700

Spring Load IOC Container and Load Bean Source Interpretation

. SpringBoot application development is already very common. It's true that SpringBoot brings us a lot of convenience for development, but in fact, SpringBoot does not add any new features, it just mixes upgrades based on Spring notes.The essence of SpringBoot is automated assembly (@EnableAutoConfiguration). We don't need to in ...

Posted by Weiry on Mon, 29 Apr 2019 02:10:36 -0700

springboot unit test

3.springboot Unit TestBecause the company needs 80% unit test coverage, write unit test cases.Multimodal projects often make calls to other services and avoid database operations affecting the database, so all operations are mock ed out, which is the result of a simulated call.Test case writing is available for reference https://www.journaldev. ...

Posted by frao_0 on Sat, 27 Apr 2019 02:42:35 -0700

Service Layer of Secondary Killing System Based on SSM

Preface This blog is the DAO layer of the second kill system based on SSM. If you don't know the whole process, please watch the last one first. Introduction to Service Layer In the previous DAO layer, the interface and related SQL are written to separate the code from the SQL and facilitate future review. When we need to control some processes ...

Posted by kinaski on Sat, 20 Apr 2019 20:06:34 -0700

Android Integrated Mob Platform to Acquire Short Message Verification Code

First, when using the SMS authentication code of Mob platform, you need to register your account on the official website and obtain the developer's qualification to apply for AppKey and AppSecret. Register Mob Account Official Address: http://www.mob.com After registering, Click to enter the background. Enter the background and clic ...

Posted by xionhack on Sat, 20 Apr 2019 09:27:34 -0700

Android Studio multi-channel packaging

Reference material Blog: http://blog.csdn.net/mynameishuangshuai/article/details/51783303 http://stormzhang.com/devtools/2015/01/15/android-studio-tutorial6/ Video: http://www.imooc.com/learn/752 Suppose Android Manifest. xml's meta-data > CHANNEL is the channel's standard 1. Setting Dynamic Channel Variables in Android Manife ...

Posted by phpion on Wed, 17 Apr 2019 01:39:33 -0700

Conversion among Json, JavaBean and Xml

Json, JavaBean and Xml are often used to transform each other in work. Many ways are used. Here is a summary for reference. Now the mainstream conversion tools are json-lib, jackson, fast JSON and so on. I will give you a brief introduction one by one, mainly in the form of code to post how to use these tools simply, and more advanced func ...

Posted by komquat on Mon, 08 Apr 2019 19:21:32 -0700

Calling Third Party Interface to Send SMS

Enter Aliyun Market Page: After login, select API. Select the SMS interface item I need on the API service page and click Enter Choose the eye-to-eye interface service. If it's a trial, choose 0 yuan/5 times. If you have money and don't worry about spending, choose 30,000 yuan/100,000 times to buy. After payment is ...

Posted by Tindo on Fri, 05 Apr 2019 16:39:29 -0700