- 博客(60)
- 问答 (2)
- 收藏
- 关注
原创 删除万能恢复大师
卸载万能恢复大师C盘–Progran Files(x86),找到 WnRwcovery 文件夹—点击uninst运行--会出来一个卸载页面-卸载
2021-12-14 13:55:23
3839
4
原创 Spring 使用@ExceptionHandler注解代替try catch
/***使用很简单*在控制器增加Advice**方法标记主注解*/@RestControllerAdvicepublic class PartController { @ExceptionHandler(Exception.class) public void test(){ }}异常参数可以自行定义
2021-04-29 10:19:28
664
转载 外网访问阿里云服务器公网ip
今天遇到个问题 买了阿里云但是在服务器上部署的服务都访问不了说是安全组没开 我去看了都是正常的 折腾了一下午才发现是什么问题需要这样操作1.查看开放端口列表firewall-cmd --list-ports2.在指定区域打开端口(记得重启防火墙)(永久生效再加上 --permanent)firewall-cmd --zone=public --add-port=8080/tcp3.指定完重启防火墙systemctl restartfirewalld...
2021-04-07 17:54:36
508
转载 java 多线程
记录一个多线程应用import java.util.concurrent.ArrayBlockingQueue;import java.util.concurrent.BlockingQueue;import java.util.concurrent.ThreadPoolExecutor;import java.util.concurrent.TimeUnit; /** * 测试ThreadPoolExecutor对线程的执行顺序 **/ public stati
2021-03-29 11:24:23
102
原创 springboot @Aspect 切面接口
好久没写文章了 更新一个小技术点关于@Aspect 切面接口的应用,不多说上代码@Slf4j@Aspect@Componentpublic class InterceptorAspect { @Pointcut("execution(public * com.www.baidu.job..*.*(..))") public void Pointcut() { }//签名 @Before(value = "Pointcut()") public .
2021-03-11 15:35:03
1038
1
原创 Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
报错信息:***************************APPLICATION FAILED TO START***************************Description:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.Reason: Failed to determine a su
2020-11-19 17:55:47
91
原创 hadoop put上传文件报错
最近准备学习下大数据相关的知识,先从hadoop学习开始,在hadoop集群环境搭建后测试上传文件一直报错,防火墙全部关闭了,配置也没问题,格式化也没问题,查找了半天资料才发现问题,以此记录报错:put: File /README.txt._COPYING_ could only be written to 0 of the 1 minReplication nodes. There are 0 datanode(s) running and 0 node(s) are excluded in th
2020-11-13 10:10:23
1887
原创 layui 下拉回显
var isEnable=$("#isEnable").val();//获取回显的值,console.log("isEnable---"+isEnable)// 遍历select$("#isEnable").each(function() { // this代表的是<option></option>,对option再进行遍历 $(this).children("option").each(function() { // 判断需要对那个选项进行回.
2020-07-07 14:14:09
296
原创 只能选择 不能手动输入 可以触发点击事件
好长时间没更新,更新个小东西readonly="readonly" style="background-color: #ffffff"<input type="text" name="" id="" class="form-control" readonly="readonly" style="background-color: #ffffff" placeholder="请输入" onclick="">
2020-07-01 15:58:02
866
原创 报错
Data truncation: Truncated incorrect DOUBLE value: 'questionIds=33333'; nested exception is com.mysql.jdbc.MysqlDataTruncation: Data truncation: Truncated incorrect DOUBLE value: 'questionIds='困扰了一整天的问题 ,后台参数接的到 就是不能执行sql无语了解决方法使用这样的方式接...
2020-05-20 15:46:23
141
原创 spring pagehelper 三步走
<!--1. 引入pagehelper 依赖--> <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.2.5</version> ..
2020-05-18 13:39:51
135
转载 idea JVM调优
https://blog.youkuaiyun.com/u013295276/article/details/78543190
2020-04-03 12:34:46
647
原创 Hutool 导出excel
List<Bean> listVo = testService.getBList(paramMap); ExcelWriter writer = ExcelUtil.getWriter(true); //自定义标题别名 writer.addHeaderAlias("startTime", "开始时间"); ...
2020-02-18 19:36:41
1225
4
转载 java 8 函数 求和 平均等
list.stream().mapToDouble(User::getHeight).sum()//和 list.stream().mapToDouble(User::getHeight).max()//最大 list.stream().mapToDouble(User::getHeight).min()//最小 list.stream().mapToDouble...
2020-02-05 15:48:34
3109
原创 python utf-8还原中文
from urllib import parsestr='%u94FE%u63A5%3Ahttps%3A//pan.baidu.com/s/1ytW7aY5jOcL7PuhWzXYVfA%20%20%u5BC6%u7801%3Aqodo'data = parse.unquote(str)print(data.replace('%','\\').encode().decode('unicod...
2019-12-11 17:41:10
4402
1
原创 java web docker部署
最近简单的自学了下载linux系统上,通过docker部署项目,已成功,记录下用到的一切命令docker ps 查看部署运行中的docker restart 项目名称*** 重启项目docker run -d -p 8888:8080 demo 启动 demo项目 项目映射端口systemctl restart docker...
2019-11-25 15:37:04
135
原创 java mybatis数组类型参数
<if test="authorIds != null and authorIds.length >0"> and us.userid in <foreach collection="authorIds" item="item" open="(" separator="," close=")"> #{item} </...
2019-11-22 20:01:21
881
翻译 java 上传文件
public String fileIsOutLine(MultipartFile file, String sequenceNo, HttpServletResponse response) { String url=""; try { PrintWriter writer = response.getWriter(); ...
2019-10-31 11:14:24
133
原创 java 对象赋值神器
BeanUtils.copyProperties(1Bean,2Bean);1赋值给2 nice相同实体相同数据类型情况哦
2019-10-23 18:13:40
198
转载 Java的System.gc()
最近写文件上传,创建临时文件,发现一个博客写的不错,特别是从其中学习了Java的System.gc()这个方法,写的很细致,源码很清晰(虽然看不太懂)分享一波
2019-09-18 17:47:20
192
原创 python报错 TypeError: sequence item 0: expected str instance, int found
报错原因list无法转换str,解决办法.join('%s' %id for id in data)遍历出值在转
2019-09-17 18:02:47
2853
翻译 java 创建临时文件
https://blog.youkuaiyun.com/makeitperfect/article/details/12975529感谢大神的这篇博客,非常好用一起学习,共同进步import java.io.File;import java.io.IOException; /** * 创建新文件和目录 */public class CreateFileUtil { /** ...
2019-09-11 17:34:51
1024
原创 python小说爬虫,完美运行
import randomimport requestsimport reheader = [{ 'User-Agent': 'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.76 Mobile Safari...
2019-08-22 10:21:26
313
原创 python周期性测试脚本
import timeimport osimport schedimport threadingimport requestsimport unittestimport jsonimport traceback#定时任务案例# 初始化sched模块的scheduler类# 第一个参数是一个可以返回时间戳的函数,第二个参数可以在定时未到达之前阻塞。schedule = sc...
2019-08-21 10:18:47
613
原创 python获取数据库信息
#亲测可用import pymysqlimport sys# 导入pymysql模块import pymysql# 获取连接coon = pymysql.connect(host="localhost", db="test", user="root",...
2019-08-21 10:15:29
1287
2
原创 java代码通过redis实现分布式锁
今天有个抢单业务需要需要加锁,所以使用了redis的锁机制,不废话上干货public int updateTsakSuatusByTaskIdAuthorId() { try { //看当前任务状态---- boolean isLock = redisRepository.lock(lockKey, "AUTHORID"+authorId,...
2019-07-23 15:43:10
618
原创 mybatis map参数放Integer数组,一直返回列表为空
mybatis map参数放Integer数组,一直返回列表为空,整了一下午一直在排查问题.....都快疯了,莫名的问题,根本不报异常+同事帮我找的办法,感谢同事!!private Integer[] deleteArrayNull(Integer string[]) { Integer strArr[] = string; ArrayList&l...
2019-07-22 17:33:57
717
原创 springboot 对象中格式化时间
@Setter@Getter@ToStringpublic class TaskInfoDetailVo { public Integer status;//状态 public Integer taskInfoStatus;//状态 public String reason;//描述 public String taskInfoReason;//描述...
2019-07-18 16:22:26
1086
原创 springboot处理并发接口,简单实用
public int updateTsakSuatusByTaskIdAuthorId(Integer authorId, Integer taskCode, Integer status) { TaskInfoDetailVo taskDetail = null; TaskAuthorVo taskAuthor = null; //处理并发事件 定义资源的总数量 ...
2019-07-17 20:19:50
7767
1
原创 com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class vo.auth
2019-06-27 19:25:46.515 ERROR 16548 --- [nio-8090-exec-5] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request ...
2019-06-27 19:31:57
1220
原创 mybatis不反回无用空字段只返回查询字段
<resultMap id="BaseMcnMap" type="java.util.LinkedHashMap" > <result column="mcn_ref_id" property="mcnRefId" jdbcType="VARCHAR" /> <result column="mcn_name" property="mcnName" jdbcT...
2019-04-26 16:34:58
957
原创 springboot配置分页插件
<--maven依赖-->maven依赖<!-- 分页插件 注意版本,1.2.3与springboot2组合使用要不然报版本冲突--><dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boo...
2019-04-25 17:02:08
1898
空空如也
请问这样写完为啥下拉不显示内容啊?
2019-01-08
大神们微信小程序开发怎么个流程啊
2017-10-30
TA创建的收藏夹 TA关注的收藏夹
TA关注的人