摘要: 1.选择form-data 2.key写file,类型选择file 阅读全文
posted @ 2020-11-27 15:01 缘故为何 阅读(162) 评论(0) 推荐(0)
摘要: 1.依赖 <!--sqlserver驱动--> <dependency> <groupId>com.microsoft.sqlserver</groupId> <artifactId>mssql-jdbc</artifactId> <version>7.2.1.jre8</version> </de 阅读全文
posted @ 2020-11-26 16:16 缘故为何 阅读(237) 评论(0) 推荐(0)
摘要: 1.控制台报错 Access to XMLHttpRequest at 'http://ip:9999/tradeSale/detail?id=6' from origin 'http://ip:8081' has been blocked by CORS policy: Response to p 阅读全文
posted @ 2020-11-11 17:55 缘故为何 阅读(1365) 评论(0) 推荐(0)
摘要: 1.model import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; im 阅读全文
posted @ 2020-10-22 10:31 缘故为何 阅读(1276) 评论(0) 推荐(0)
摘要: 1.关键字解释 //它是一个Controller增强器,可对controller中被 @RequestMapping注解的方法加一些逻辑处理 @ControllerAdvice //异常定义 @ExceptionHandler //返回格式为json,可以使用 @RestControllerAdvi 阅读全文
posted @ 2020-10-20 16:03 缘故为何 阅读(746) 评论(2) 推荐(0)
摘要: mysql2:~ #top Shift+p 按照cpu排序 找到cpu最高进程pid 28324 mysql2:~ #top -H -p 28324 找到cpu最高的线程tid 31218 mysql2:~ #printf "%x\n" 3121879f2 转换线程为16进制 mysql2:~ #j 阅读全文
posted @ 2020-09-22 15:54 缘故为何 阅读(386) 评论(0) 推荐(0)
摘要: 1.spring注解方式 @Component @EnableScheduling public class DynamicCronTask { // 每隔10秒执行一次 @Scheduled(cron = "0/10 * * * * ?") public void task(){ System.o 阅读全文
posted @ 2020-09-11 15:54 缘故为何 阅读(311) 评论(0) 推荐(0)
摘要: 1.依赖 <!--HttpClient--> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.5.12</version> </depen 阅读全文
posted @ 2020-09-09 15:04 缘故为何 阅读(7061) 评论(0) 推荐(1)
摘要: 1.远程下载url的二进制文件 //获取二进制文件 public static byte[] downLoadBinary(String urlStr) throws IOException{ URL url = new URL(urlStr); HttpURLConnection conn = ( 阅读全文
posted @ 2020-09-04 17:45 缘故为何 阅读(2731) 评论(0) 推荐(0)
摘要: 页面: <div class="container"> <label>请输入标题:</label> <input type="text" placeholder="请输入" id="title" autocomplete="off"> <label>请输入您的昵称:</label> <input t 阅读全文
posted @ 2020-08-25 14:44 缘故为何 阅读(220) 评论(0) 推荐(0)