Simply send requests with cookie s
Create the request, set the parameters of HTTPHeaderField, and send the request through NSURLSessionTask.
The AFNetworking component we encapsulate can only pass parameters, and can't set HTTPHeaderField parameters. There must be a few requests with HTTPHeaderField parameters sent, so we don't want to modify the component libr ...
Posted by moreshion on Wed, 01 Jan 2020 14:07:55 -0800
Dodoke September 3 study notes
Syllabus
1. jsp form data change
2. Difference between form method get and post;
3. Character encoding
Course notes
1, jsp form data change
//First, query the database through id and display it in the form
<%
String id = request.getParameter("id");
String name ="";
Class.forName("com.mysql.jdbc.Driver");
...
Posted by foreverhex on Wed, 01 Jan 2020 10:01:14 -0800
App Resource -- inline complex XML resource
Some resource types are combinations of multiple complex resources represented by XML files. An example is animation vector drawable, which is a paintable resource, encapsulating vector drawable and animation. This requires at least three XML files.
res/drawable/avd.xml
<?xml version="1.0" encoding="utf-8"?>
<animate ...
Posted by tegwin15 on Wed, 01 Jan 2020 02:41:48 -0800
20 common methods of (JavaScript native) string + string traverser + template string
Reprinted from: https://blog.csdn.net/qq_39872652/article/details/81517626
20 common methods of (JavaScript native) string + string traverser + template string
It's a common saying that no matter a professional or a fledgling Xiaobai believes that he is familiar w ...
Posted by latinofever on Tue, 31 Dec 2019 19:56:02 -0800
LinearLayoutCompat under v7 package
In normal development, we often have the requirement that each Item layout should be distinguished by using a split line in the layout, as shown in the following code:
The effect is shown in Figure 1-1
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
...
Posted by ashebrian on Tue, 31 Dec 2019 18:42:06 -0800
Spring cloud spring boot mybatis distributed micro service Cloud Architecture Development Web Application
After completing the configuration, take a simple example. Based on the quick start project, take a simple example to render a page through Thymeleaf.
@Controller
public class HelloController {
@RequestMapping("/")
public String index(ModelMap map) {
// Add a property to read from the template
map.addAttribute(" ...
Posted by Paul Arnold on Tue, 31 Dec 2019 17:03:19 -0800
How to design a nice user name and password input box for Android studio
How to design a nice user name and password input box for Android studio
Hello everyone, today is my first time to write a blog. I'm not familiar with the functions of blogging. Please forgive me and criticize me
Equivalent to a registration page
----------<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:and ...
Posted by techek on Tue, 31 Dec 2019 12:05:15 -0800
JavaScript learning note 017 - numeric method 0Math0 timer
Author: Mr. Liu Shangyuan
Give no less than any effort
May all our efforts be lived up to
Never forget why you started, and your mission can be accomplished.
I didn't miss you very deliberately
Because I know
We should be grateful when we meet
You need to let go when you pass by
I'm just in a lot of little moments
Think of you
L ...
Posted by Scifa on Tue, 31 Dec 2019 06:48:54 -0800
Using Python 3 to save csv format to MySql database
Next, you need to store the stock data in csv format in mysql database:
Here are two methods:
+Using pymysql
+Using sqlalchemy
See mysql installation here: https://blog.csdn.net/tonydz0523/article/details/82501177
Using pymysql
Install pip install pymysql
You also need to use pandas PIP install pandas
First, establish a ...
Posted by bitt3n on Tue, 31 Dec 2019 03:31:19 -0800
Use SmartRefreshLayout to complete the complete example of RecyclerView pull-up refresh and pull-down refresh
First, let's take a look at the effect, first update 5 data items from top to bottom, then slide to the bottom and pull up to add 5 data items from the bottom to the top:
We use a third-party library, so we first add it in the gradle configuration file:
implementation 'com.android.support:recyclerview-v7:25.3.1'
imp ...
Posted by paladaxar on Tue, 31 Dec 2019 01:14:42 -0800