python 3.7 quick start tutorial 7 Internet

Contents of this tutorial 7 Internet Internet access urllib urllib is a Python module for opening URL s. import urllib.request # open a connection to a URL using urllib webUrl = urllib.request.urlopen('https://china-testing.github.io/address.html') #get the result code and print it print ("result code: " + str(webUrl.getcode())) ...

Added by johnh2009 on Sun, 08 Dec 2019 21:33:51 +0200

Servlet Filter

Characteristic 1) Filter is dependent on Servlet container, which is a part of Servlet specification. Three interface classes are defined in Servlet API: Filter, filterchain and filterconfig. 2) the basic function is to intercept the process of calling Servlet, so as to realize some special functions before and after the response processing of ...

Added by chrispols on Sun, 08 Dec 2019 21:27:23 +0200

spring default boot location and contextConfigLocation settings for source resolution

Looking at the spring source these days, which covers where spring starts, let's see where spring actually started loading.This article uses spring3.0M3 The first spring load will go directly to the web.xml file with the help of a listener, ContextLoaderListener <listener> <listener-class>org.springframework.web.conte ...

Added by qazwsx on Sun, 08 Dec 2019 19:51:54 +0200

java backend solves cross domain problems through Filter filter

This scheme only needs the code modification of the server Because now we want to separate the front end and the back end, there must be cross domain problems. Here are the effective codes we have tested: Steps: I. add in the web.xml file <!-- 2019-01-15 Solve cross domain problems --> <filter> <filter-name>cros ...

Added by aseaofflames on Sun, 08 Dec 2019 18:52:48 +0200

Python crawler project -- new houses in hot cities of crawler

This actual battle is to use reptiles to climb the new house of chainman (statement: the content is only for learning and communication, not for commercial use) Environmental Science win8, python 3.7, pycharm text 1. Target website analysis Through analysis, find out the relevant url, determine the request mode, whether there is js encryption 2 ...

Added by Mactek on Sun, 08 Dec 2019 16:30:30 +0200

Database version management tool Liquibase

The process of R & D often involves database changes, the repair of table structure and the modification of data. In order to ensure that each environment can be changed correctly, we may need to maintain a database upgrade document to save these records. The environment that needs to be upgraded will be upgraded according to the document. ...

Added by tariel on Sat, 07 Dec 2019 09:31:11 +0200

Spring boot: let me show you the principle of automatic assembly

Preface Spring is translated into Chinese as "spring". Indeed, in a certain period of time, it has brought spring to Java developers. However, with the expansion of our project scale, there are more and more places where spring needs to be configured. To exaggerate, "configuration takes two hours, Coding takes five minutes". ...

Added by rawisjp on Sat, 07 Dec 2019 08:32:54 +0200

Android Intent for page Jump

What is Intent Intent can be understood as a messenger (intention) Intent cooperates to complete the communication between Android components, or to realize the jump between pages Intent to jump between pages startActivity(intent) / / the first way to start startActivityForResult(intent, requestCode); / / the second way to start onActivity ...

Added by uniflare on Fri, 06 Dec 2019 04:35:48 +0200

SSM integrates activeMQ/activeMQ configuration

I. introduce dependency <!-- xbean as<amq:connectionFactory /> -->     <dependency>         <groupId>org.apache.xbean</groupId>         <artifactId>xbean-spring</artifactId>         <version>3.16</version>     </dependency>     <dependency>         <groupId>org. ...

Added by bad76 on Fri, 06 Dec 2019 01:45:27 +0200

Android Development Notes Material Design animation -- water ripple and exposure effect

Today we will introduce some animations of the Material Design button: water ripple and exposure effect. Source download address: 1. Water ripple effect   1.1 layout file <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http: ...

Added by dawho9 on Thu, 05 Dec 2019 17:32:57 +0200