python advanced web server
Three handshakes of tcp
Four waves of tcp
http client ----- > request format sent by server:
request header
GET / HTTP/1.1
Host: www.baidu.com
Connection: keep-alive
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3 ...
Posted on Sat, 30 Nov 2019 02:05:36 -0500 by zachatk1
Solve the problem of Tomcat adding cookie domain name error: Cookie processor
From: https://blog.csdn.net/liqing0013/article/details/86489802
Solve the problem of Tomcat adding cookie domain name error: Cookie processor
Environment
Error reporting
Cause analysis
Solutions
Environmental Science
Java 8
Tomcat 8.5
Error reporting
Throw IllegalArgumentException
The specific information is as f ...
Posted on Sat, 30 Nov 2019 01:06:50 -0500 by phpmaverick
A way to export pdf freemark+itext
A way to export pdf freemark+itext
Because pdf is not editable, it cannot be directly filled in the template like excel when exporting, so it needs to fill in the data before the template is generated. The following way is to use html to pdf,freemark can be used as html template, itext can generate pdf, which can solve the bas ...
Posted on Fri, 29 Nov 2019 12:22:29 -0500 by angelcool
Remove Android TextView default inner margin
Because textview draws text based on four grid lines, the default inner margin will be displayed in textview when the text is actually displayed, which is not caused by padding. For details, please refer to: http://blog.csdn.net/harvic880925/article/details/50423762
There are also many solutions on the Internet, such as:
andr ...
Posted on Fri, 29 Nov 2019 10:02:33 -0500 by osnewbie2004
java interface background scrambling
@RequestMapping(value = "/XlxKpBillAction", method={RequestMethod.POST, RequestMethod.GET})
public void XlxKpBillAction(HttpServletRequest request, HttpServletResponse response,
Integer pageno, Integer pages, String data,String appid) throws UnsupportedEncodingException {}
The company interface form of the newly hired c ...
Posted on Fri, 29 Nov 2019 09:47:28 -0500 by brainstorm
Python interface automation
requests module (7)
(8) requests module
1. Requests are written in python language and belong to the third-party library. Based on urlib and using Apache 2 licensed open source protocol, HTTP library is more convenient than urlib, which can save us a lot of work and fully meet the HTTP test requirements. In a word, requests is a simple and ea ...
Posted on Thu, 28 Nov 2019 16:49:05 -0500 by oberwil
Building of basic development framework 1: springboot integrated with mybatis
Basic development framework building - springboot integrated with mybatis
1. Project structure
First, use idea to create the most basic spingboot project, and create the following file directory.
--src
--main
--java
--com.springboot.merge
--user /* Module name */
--controller /* controller layer */
...
Posted on Thu, 28 Nov 2019 10:48:31 -0500 by TylerL
springboot logback custom log configuration
1. Create a new logback-spring.xml configuration file in SpringBoot
Composition of logback configuration file
The root node <configuration>has five child nodes, which are described below.
<root>node
_root node is a required node to specify the most basic log output level, with only one level attribute to set the print level, ...
Posted on Wed, 27 Nov 2019 23:21:25 -0500 by JayLewis
AnimatedVectorDrawable
After reading the article, I will summarize:
https://blog.csdn.net/gitzzp/article/details/56289647
Key points of vector animation:
Vector vector diagram
Animated vector animation
objectAnimator animation
The purpose of animated vector is to connect vector and object animator
In Android, an SVG is generally an XML ...
Posted on Wed, 27 Nov 2019 17:18:06 -0500 by pedrobcabral
SQL server uses mybatisgenerator to automatically generate entity classes, Mapper interfaces and corresponding XML files
Preparation
You need to prepare a sqljdbc 4-4.0.jar first
New configuration of pom file
New dependency
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>1.3.5</version>
</dependency>
Add plug-in configura ...
Posted on Wed, 27 Nov 2019 13:36:09 -0500 by tex1820