会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
缘故为何
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
9
下一页
2020年11月27日
Postman上传文件
摘要: 1.选择form-data 2.key写file,类型选择file
阅读全文
posted @ 2020-11-27 15:01 缘故为何
阅读(162)
评论(0)
推荐(0)
2020年11月26日
sql server工具类
摘要: 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)
2020年11月11日
springboot开启token校验一直报错No 'Access-Control-Allow-Origin' header is present on the requested resource
摘要: 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)
2020年10月22日
Jpa分页查询
摘要: 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)
2020年10月20日
Restful接口调用统一异常处理
摘要: 1.关键字解释 //它是一个Controller增强器,可对controller中被 @RequestMapping注解的方法加一些逻辑处理 @ControllerAdvice //异常定义 @ExceptionHandler //返回格式为json,可以使用 @RestControllerAdvi
阅读全文
posted @ 2020-10-20 16:03 缘故为何
阅读(746)
评论(2)
推荐(0)
2020年9月22日
Linux找死锁、cpu100%
摘要: 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)
2020年9月11日
Java定时任务
摘要: 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)
2020年9月9日
Java工具类HttpUtil
摘要: 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)
2020年9月4日
Java后台远程下载url文件并远程上传文件
摘要: 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)
2020年8月25日
jQuery上传文件
摘要: 页面: <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)
上一页
1
2
3
4
5
6
7
8
9
下一页
公告