Easter79 Easter79
4年前
springboot使用Fiber纤程踩过的坑
@RequestAttribute为null在springboot中使用@FiberSpringBootApplication注解标注在SpringBootApplication上时,发现在拦截器(或过滤器)中调用request.setAttribute设置的值,在controller中使用@RequestAttribute获取却是null,而去
一种基于图片搜索视频的方案
随着移动互联网发展,手机端购物已成为人们生活的常态。人们在搜索商品时采用的手段也越来越丰富,当前的主要搜索方式是文本搜索与拍照搜索。
马丁路德 马丁路德
4年前
小程序 - 拦截返回操作
方法名称:wx.enableAlertBeforeUnload实现功能:拦截页面返回,返回上页前弹出询问对话框文档链接&图片:文档说明代码示例onLoad:function(){wx.enableAlertBeforeUnload({message:"返回上页时弹出对话框1212"
Wesley13 Wesley13
4年前
MySQL中update修改数据与原数据相同会再次执行吗
背景本文主要测试MySQL执行update语句时,针对与原数据(即未修改)相同的update语句会在MySQL内部重新执行吗?测试环境MySQL5.7.25Centos7.4binlog\_format为ROW参数root@localhost:(
Stella981 Stella981
4年前
SecurityContextHolder.getContext().getAuthentication()为null的情况
原理:UserDetails userDetails\(UserDetails)SecurityContextHolder.getContext().getAuthentication().getPrincipal();如果想用上面的代码获得当前用户,必须在spring security过滤器执行中执行,否则在过滤链执行完时org.spri
Stella981 Stella981
4年前
Can't connect to local MySQL server through socket
mysqlurootERROR2002(HY000):Can'tconnecttolocalMySQLserverthroughsocket'/tmp/mysql.sock'(2)这是mysql登录时找不到套接字的问题。首先需要明白的是,Linux端的mysqlserver启动时会开启一个so
Easter79 Easter79
4年前
SpringMVC接收Postman post json数据
当postman向服务端post数据时,一般要求在body里已xwwwformurlencoded格式写成keyvalue的形式。服务端通过以下代码可以取到参数finalMap<String,StringallParamsMaps.newHashMap();finalEnumeration<Stringpar
Easter79 Easter79
4年前
Swagger如何测试Date类型参数
问题Swagger测试时,参数直接输入日期格式化后的类型,会报参数日期转换错误:ConversionFailedException解决网上说在参数上添加注解@DateTimeFormat(pattern“yyyyMMdd”)或者是添加@JsonFormat(pattern”yyyyMMddHH:mm:
Stella981 Stella981
4年前
PostgreSQL drop database 显示会话没有关闭 [已解决]
错误重现有时候需要删除某个数据库时,会报如下错误,显示有一个连接正在使用数据库,无法删除ERROR:database"pilot"isbeingaccessedbyotherusersDETAIL:Thereis1othersessionusingthedatabase.解决方法
Stella981 Stella981
4年前
Nginx 面试中最常见的 18 道题!
公众号关注“杰哥的IT之旅”,选择“星标”,重磅干货,第一时间送达!!(https://oscimg.oschina.net/oscnet/68c89959150d49b992c2213a39a98a23.jpg)