![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Httpclient
qq_40447533
这个作者很懒,什么都没留下…
展开
-
接口自动化之springboot+mybatis连接数据库发生一个get请求
1.首先在maven里面添加相应的dependies,如: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <vers...原创 2021-07-26 16:37:36 · 156 阅读 · 0 评论 -
接口自动化第一个get请求(从resource里面读取配置文件)
httpclient的官网:http://hc.apache.org/httpclient-3.x/performance.html#Cookie_processing 1.在maven工程里面引入包, <dependency> <groupId>org.apache.httpcomponents</groupId> ...原创 2018-12-30 16:27:09 · 264 阅读 · 0 评论 -
接口自动化httpclient获取和发送cookies信息
1.获取cookies public void testGetCookies() throws IOException { HttpGet get= new HttpGet(uri); //HttpClient没有获取cookies的方法 DefaultHttpClient client=new DefaultHttpClient...原创 2018-12-30 16:52:38 · 796 阅读 · 0 评论 -
异常:java.sql.SQLException: The server time zone value '?й???????' is unrecognized or represents more
异常错误:java.sql.SQLException: The server time zone value '?й???????' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone co...原创 2019-01-05 19:31:31 · 4379 阅读 · 5 评论 -
Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdb
这个错误是应为最新的mysql的驱动名称变了,把数据库驱动名称改为: com.mysql.cj.jdbc.Driver 2019-01-05 19:34:09.005 [main] INFO com.course.Application - Starting Application on AFOIG-801172222 with PID 13828 (C:\Users\Administ...原创 2019-01-05 19:37:35 · 585 阅读 · 0 评论 -
接口自动化之httpclient的post请求
package com.course.httpclient.cookies; import org.apache.http.HttpResponse; import org.apache.http.StatusLine; import org.apache.http.client.CookieStore; import org.apache.http.client.methods.HttpGe...原创 2019-01-01 17:41:51 · 408 阅读 · 0 评论