随笔 - 835  文章 - 1 评论 - 40 阅读 - 102万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

01 2019 档案
web 在线聊天的基本实现
摘要:参考:https://www.cnblogs.com/guoke-jsp/p/6047496.html 阅读全文
posted @ 2019-01-25 15:25 lshan 阅读(438) 评论(0) 推荐(0) 编辑
springboot 前后端分离项目跨域配置
摘要:#方式1:@Configuration @EnableWebMvc public class CorsConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { 阅读全文
posted @ 2019-01-25 14:48 lshan 阅读(181) 评论(0) 推荐(0) 编辑
消息推送(1)
摘要:参考一: http 流的方式 https://blog.csdn.net/u011350550/article/details/83340657 参考二: spring boot +websocket 服务器主动推送消息 https://blog.csdn.net/qq_35638499/artic 阅读全文
posted @ 2019-01-25 14:29 lshan 阅读(1112) 评论(0) 推荐(0) 编辑
JSR303 分組数据验证的使用 jsr303
摘要:场景1: 验证VO字段 场景2:一个Bean ,需要在不同情况下分别做分组验证 场景3:springboot , 统一验证异常处理(需要在不同情况下分别做分组验证) 场景1: 验证VO字段 Bean: @Data @Document(collection = "booking") public cl 阅读全文
posted @ 2019-01-24 12:17 lshan 阅读(128) 评论(0) 推荐(0) 编辑
PropertiesUtils
摘要:Properties properties = PropertiesLoaderUtils.loadProperties(new ClassPathResource("properties/statusMapping.properties")); //path springboot --> reso 阅读全文
posted @ 2019-01-17 17:32 lshan 阅读(225) 评论(0) 推荐(0) 编辑
redistemplate优雅地操作redis redis 工具类
摘要:参考:https://www.cnblogs.com/superfj/p/9232482.html redis 工具类 redis的key工具类 package com.util; /** * redisKey设计 */ public class RedisKeyUtil { /** * redis 阅读全文
posted @ 2019-01-15 13:48 lshan 阅读(594) 评论(0) 推荐(0) 编辑
spring boot2.x 整合redis 使用redis 做默认缓存
摘要:依赖: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> application.propert 阅读全文
posted @ 2019-01-15 13:07 lshan 阅读(253) 评论(0) 推荐(0) 编辑
redis admin 安装 redisdesktop
摘要:参考: redis : https://blog.csdn.net/qq_26709459/article/details/80159468 redisdesktop: https://redisdesktop.com/download 阅读全文
posted @ 2019-01-15 10:56 lshan 阅读(86) 评论(0) 推荐(0) 编辑
23种设计模式
摘要:23种设计模式: 总结计较好的一篇:https://lijie.blog.csdn.net/article/details/105462226 来自:http://www.runoob.com/design-pattern/state-pattern.html 另一个参考:https://www.c 阅读全文
posted @ 2019-01-10 09:41 lshan 阅读(197) 评论(0) 推荐(0) 编辑
linux 下使用 curl post
摘要:命令: curl -X POST -d @/etc/lazada/lazada_tracking.txt http://localhost:8080/booking/rs/LazadaService/post --header "Content-Type:application/json" -d 后 阅读全文
posted @ 2019-01-09 12:02 lshan 阅读(408) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示