- 博客(14)
- 收藏
- 关注
原创 Redis报错:WRONGTYPE Operation against a key holding the wrong kind of value
类型的,但执行数据操作的时候,却使用了string类型的操作方法。例子: 数据库中有一个key的数据存储的是。
2023-10-10 16:14:51
377
1
原创 牛客网-高级项目(四)-用户注册单点登录以及使用token、cookie、session
在同一应用服务器内共享方法:设置cookie.setPath("/");cookie.setPath()的用法-->(https://www.cnblogs.com/tianguook/archive/2013/11/30/3451609.html)1.不跨域 cookie.setPath("/"):webapp下所有应用共享cookie cookie.setPat...
2019-01-27 14:52:00
724
原创 Redis自学笔记(一)
一.五种数据类型:String、Set、Sorted Set、List、HashString:可以包含任意字符,如图片、序列化对象等,一个件最大512Mset fsykey fsyvalue;set fsykey “fsyvalue”;get fsykey;Set:集合,增删查都是O(1),用于交集并集,常用于共同好友、好友推荐、查询网站独立ip等功能sadd fsys...
2019-01-27 14:51:16
166
1
原创 MD5加密
import java.security.MessageDigest;/** * Created by nowcoder on 2018/08/07 下午2:30 */public class MD5 { public static String next(String key) { char hexDigits[] = { '0', '1', '2'...
2018-12-11 14:30:57
121
原创 Dubbo消费者调用服务端接口
1. Integration层中的pom增加一个需要调用的service的依赖2.dubbo.xml文件配置dubbo:reference
2018-07-19 19:20:58
2922
1
原创 SpringBoot Controller的参数请求方式
/delete/{id} 对应@PathVariable("enterpriseId") Long enterpriseId @RequestMapping(value = "/delete/{Id}", method = {RequestMethod.GET}) public ResponseEntity<Object> deleteDebtorEnterpr...
2018-07-18 17:33:34
1597
1
原创 Dubbo+SpringBoot项目,consumer模块学习笔记
项目共三个模块;service(Service层,提供服务给controller层调用,数据类型为BO integration(适配层,调用提供者提供的服务,导入jar包依赖,数据类型为TO(涉及数据传输,主要序列化 main(Controller层,前端请求Controller,前端传递的数据类型为Request,转为BO作为Service层的参数项目入口为main模块中的Gate...
2018-07-18 17:13:40
1222
1
原创 git报错:ssh: Could not resolve hostname -: Name or service not known
ssh: Could not resolve hostname -: Name or service not known解决方法:重新pull下项目,将pull下来的项目中的. git文件夹 复制到 需要上传的项目中(删除愿项目的.git文件夹)git add .git commit -m ""git pushgit statusgit log...
2018-07-18 14:07:06
26025
5
原创 Dubbo项目consumer无法启动
错误原因如下:1.注册中心中dubbo:register(消费者)dubbo:service(提供者)两个配置的暴露地址要一致2.提供者和消费者的配置都是从superdiamonds 中拉下来的,因为superdiamonds中要配置两个项目的配置信息3.消费者中pom文件要配置一下jar包,将提供者的Facade层引入项目...
2018-07-18 14:01:57
1977
1
原创 Mybaties中example查询为null:
Mybatis 脚本中设置了limit、offset为null时,默认分页 解决方法:1.将example类中的limit 和 offset改为Integer类型(默认为0)2.Mapper.xml中加入 limit != 0 和 offset != 0条件...
2018-07-18 13:57:11
2791
原创 Mac 快捷键
finder下点击可以更换偏好设置为打开即为用户下.finder内打开控制台禁用fn快捷键帮助可以快捷搜索右键显示包内容,可以打开应用程序安装包如何快速打开finder?Option+command+space 全局搜索(开启finder)或者是commad+tab慢慢切换了以上都不实用 finder command+shfit...
2018-07-18 13:55:49
492
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人