- 博客(8)
- 收藏
- 关注
原创 java对比两个相同对象 属性值算法---反射机制对比
采用反机制对别属性是否相同 private static Map diffAnimal(Map map,animal dog, animal cat) throws Exception { //判断两个对象是否为null if (null == dog || null == cat) { return null; } Class<? extends animal> dogClass = dog.getCl
2020-05-25 20:20:29
347
原创 解决reids局域网内无法连接问题
解决reids局域网内无法连接问题进入vi /usr/local/redis/redis.conf中注释#bind 127.0.0.1 或者 bind 0.0.0.0修改protected-mode yes 改为 protected-mode no进入src目录 cd src启动redis服务器/redis-server ../redis.conf5.查看redis是否启动...
2020-02-28 23:49:12
856
原创 springboot2.1.x redis笔记
1.RedisTemplate中定义了对5种数据结构操作redisTemplate.opsForValue();//操作字符串redisTemplate.opsForHash();//操作hashredisTemplate.opsForList();//操作listredisTemplate.opsForSet();//操作setredisTemplate.opsForZSet();/...
2019-08-28 19:06:31
155
原创 rabbitmq整理
hello world 入门1.引入依赖<dependency> <groupId>com.rabbitmq</groupId> <artifactId>amqp-client</artifactId> <version>5.7.3</version></dependency>2....
2019-07-31 16:28:11
134
原创 踩坑-springboot拦截器问题
springboot 2.0 踩坑 拦截excludePathPatterns1.错误代码1.1.实现WebMvcConfigurer接口代码 @Override public void addInterceptors(InterceptorRegistry registry){ //注册自定义拦截器,添加拦截路径和排除拦截路径 registry.addInterceptor(ne...
2019-07-21 19:19:52
543
原创 springboot关于mybatis的mapper.xml文件问题
springboot整合mybatis的mapper.xml两种方式例如有建一张user表create table user(id bigint auto_increment prmary key,username varchar(50) not null,password varchar(50) not null)实体类Class User implements Seriali...
2018-12-13 09:34:15
355
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人