[Java foundation] using Properties

Article directory 1, The. properties file in Java 2, Read profile 1. Load properties from the file stream 2. Load configuration file from classPath 3. Read a byte stream from memory to load the configuration file 4. Precautions 3, Write profile Four. Coding Five. Conclusion 1, The. properties ...

Posted on Fri, 31 Jan 2020 22:54:57 -0800 by bbauder

Using Aspectj to implement AOP ------------ configuration through XML annotation

In the last article https://blog.csdn.net/wyf2017/article/details/81239476 We briefly introduced that AOP is implemented in classes through Aspectj. Next, we will introduce how to implement AOP in xml at the end of next week First, we delete all the annotations written in the class, as shown below package com.Demo6; public ...

Posted on Fri, 31 Jan 2020 08:07:51 -0800 by Brendan Nolan

Communication between iOS NSMachPort threads and processes

Original: http://blog.csdn.net/yxh265/article/details/51483822 Communication between iOS threads In iOS, if two threads want to communicate with each other, you can use: NSMachPort Here is an example #define kMsg1 100 #define kMsg2 101 - (void)viewDidLoad { [super viewDidLoad]; //1. Create the port of the main th ...

Posted on Fri, 31 Jan 2020 07:19:25 -0800 by myanavrin

android version update and download install android 7.0

The version update before android 7.0 is actually quite simple. You only need to use the system downloader to complete the download and installation. However, after android 7.0 upgrades the security mechanism, the download and installation are limited. Here I have installed several tools for developers to use: add permission ...

Posted on Fri, 31 Jan 2020 04:54:31 -0800 by tbone05420

Spring MVC receives form data and data binding

There are three ways to receive form data.   1. Receive form data using simple types (bind simple data types) Form: <form action="${pageContext.request.contextPath}/userController/handler" method="post"> User name: < input name = "username" type = "text" / > < br / > Password: < input name = & ...

Posted on Fri, 31 Jan 2020 03:15:05 -0800 by powlow

21 days to build a distributed crawler (I) urllib Library

1.1.usage of urlopen function #encoding:utf-8 from urllib import request res = request.urlopen("https://www.cnblogs.com/") print(res.readlines()) #urlopen Parameters #def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT, # *, cafile=None, capath=None, cadefault=False, context=None): 1.2.urlretriev ...

Posted on Thu, 30 Jan 2020 20:33:30 -0800 by bri4n

Text classification and data preprocessing

This blog mainly introduces data preprocessing, including building datasets and iterators. Because the pre training language model has the corresponding thesaurus file, it does not need to build the dictionary manually, but in the pre-processing stage, it needs to indicate the filled part and non fil ...

Posted on Wed, 29 Jan 2020 09:02:33 -0800 by raker7

The third weekly report of IOS development training

The third weekly report of IOS development training Conclusion: The development of the project starts this week. At present, the team plans to complete the front-end development together. The part I am responsible for is the personal page. When it comes to loading personal information, it is necess ...

Posted on Wed, 29 Jan 2020 07:48:31 -0800 by ryansmith44

Four schemes of logback log level dynamic switch

There is often a need to dynamically modify the log level in a production environment. Now let's talk about the centralized plan Scheme 1: enable automatic scanning and updating of logback The configuration is as follows <?xml version="1.0" encoding="UTF-8"?> <configuration scan="true" scanPe ...

Posted on Wed, 29 Jan 2020 02:01:11 -0800 by dm404

Node.JS Actual 58: Write an anti-crawler system!

Crawlers, one of the biggest threats to network security! According to the crawl data type, there are many kinds of crawlers, such as crawling Email addresses, crawling commodity prices, crawling pictures, and the most crawled content, content data crawlers are flooded! Many people are deeply distr ...

Posted on Tue, 28 Jan 2020 18:49:33 -0800 by intenseone345