java
是初学者鸭
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
邮件发送注意点
1、发送邮件方需要在邮件中开启smtp,发送邮件密码填写的smtp认证密码原创 2020-09-24 10:45:48 · 270 阅读 · 1 评论 -
用mybatis 拦截器 为insert update操作填充字段
用mybatis 拦截器 为insert update操作填充字段import org.apache.ibatis.executor.Executor;import org.apache.ibatis.mapping.BoundSql;import org.apache.ibatis.mapping.MappedStatement;import org.apache.ibatis.mapping.ParameterMapping;import org.apache.ibatis.mapping.S转载 2020-07-26 21:12:51 · 4935 阅读 · 1 评论 -
从swagger上分组导入接口
导入整个文件可能数据较多,可以自由选择想要导入的接口分组package com.souche.qa.volvo.utils;import com.alibaba.fastjson.JSON;import com.alibaba.fastjson.JSONArray;import com.alibaba.fastjson.JSONObject;import org.apache.http.HttpResponse;import org.apache.http.client.methods.Htt原创 2020-05-21 22:05:25 · 460 阅读 · 0 评论 -
将swagger接口导出生成测试接口模板
将swagger接口导出生成测试接口模板思路:根据httpclient请求对返回数据解析,取出需要的字段,之后根据模板新建文件=public class ReadSwaggerUtil { /** * 根据模板文件将接口和参数填入模板文件,并将每个每个接口生成一个接口测试文件 * * @throws IOException */ @Test public static void createfile() throws IOExcept原创 2020-05-19 22:15:17 · 1697 阅读 · 0 评论 -
nested exception is org.apache.ibatis.reflection.ReflectionException
nested exception is org.apache.ibatis.reflection.ReflectionException<insert id="insert" useGeneratedKeys="true" keyProperty="id"> INSERT INTO front_category(name, sortno, operator, date_create, date_update)------跟数据库字段一样 VALUES (#{na原创 2020-05-16 14:20:30 · 248 阅读 · 0 评论 -
开发中遇到的问题 No primary or default constructor found for interface java.util.List
public JsonData insert(String title,Integer type,Integer status,List skuList) {List skuBoList = PojoUtils.convertList(skuList, SkuBO.class);报错: No primary or default constructor found for interface java.util.List原因是list是接口,没有构造函数换成ArrayList skuLi原创 2020-05-15 22:55:25 · 6441 阅读 · 0 评论 -
httpclient post请求
方法一:可以将param放在实体里面public static String dopostJson(String url, String param, String token) throws IOException { CloseableHttpClient httpclient = HttpClients.createDefault(); HttpPost ...原创 2020-05-07 20:48:02 · 167 阅读 · 0 评论 -
Httpclient get请求
因为有时候get请求不需要入参,所以加了个为空的判断public static String doget(String url, String param, String token) throws IOException { CloseableHttpClient httpclient = HttpClients.createDefault(); Strin...原创 2020-05-07 20:45:46 · 237 阅读 · 0 评论 -
写入excel代码优化
写入excel代码优化上一篇代码不够通用,所以优化了下代码public class UpdateExcelUtil { public static void updateExcelUtil(File file,List<Map> mapList) throws Exception { FileInputStream fileInputStream = ne...原创 2020-05-02 11:18:05 · 289 阅读 · 0 评论 -
修改excel单元格数据
1、需要引入的maven依赖<dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>3.17</version></dependency><dependenc...原创 2020-04-30 11:05:11 · 337 阅读 · 0 评论
分享