- 博客(4)
- 收藏
- 关注
原创 Spring定时器 cron详解
在spring.xml中配置定时任务:<!-- 定时任务配置 --><task:annotation-driven scheduler="qbScheduler" mode="proxy"/><!-- 调度线程池配置 --><task:scheduler id="qbScheduler" pool-size="10"/> 注意:1、实现...
2019-10-12 10:54:28
3585
原创 @RequestBody的使用及二维码的生成
@RequestBody主要用来接收前端传给后端的json字符串中的数据(请求体中的数据),GET没有请求体,所有用@RequestBody接收数据时,需要使用POST方式提交。这里写了一个小demo(生成二维码),通过@RequestBody接收前端传来的json格式的字符串。前端主要代码:<form > 请支付0.01元,你就能用手机扫码百度了! &a...
2019-10-11 09:50:20
414
原创 Mysql并列排名
表 test_rank:一、简单的排名:select u.stu_name, u.stu_score,@rank:=@rank+1 rankfrom (select * from test_rank ORDER BY stu_score*1 desc) u,(select @rank:=0) r运行结果:二、并列不占位SELECT u.stu_name, u.stu_scor...
2019-10-09 17:16:10
2555
5
原创 SpringBoot集成百度Ueditor
遇到的问题:将下载好的ueditor放入static目录下,能正常显示,但是上传多张图片报“请求后台配置项http错误,上传功能将不能正常使用!问题解决:自定义上传,参照:https://blog.youkuaiyun.com/m0_38129431/article/details/80462233第一步:下载Ueditor地址:http://ueditor.baidu.com/build/buil...
2019-10-09 10:47:55
293
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人