上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 33 下一页

2019年9月3日

Elasticsearch 中的 ignore_above

摘要: 检索超过ignore_above设定长度的字段后,无法返回结果 阅读全文

posted @ 2019-09-03 10:15 cag2050 阅读(1756) 评论(0) 推荐(0) 编辑

2019年9月2日

JPA 报错:Page 2 of 1 containing UNKNOWN instances

摘要: JPA 中,page是从0开始,不是从1开始; 因此,将用户输入的从1开始的page页码减1; 参见: "spring_boot_elasticsearch_demo/controller/BlogController.java" 阅读全文

posted @ 2019-09-02 19:35 cag2050 阅读(5676) 评论(1) 推荐(3) 编辑

getLog(this.getClass()) 与 getLog(XXX.class) 的区别

摘要: 在实例方法中引用Log,通常定义一个实例变量: 注意到实例变量log的获取方式是LogFactory.getLog(this.getClass()),虽然也可以用LogFactory.getLog(Person.class),但是前一种方式有个非常大的好处,就是子类可以直接使用该log实例。例如: 阅读全文

posted @ 2019-09-02 18:12 cag2050 阅读(909) 评论(0) 推荐(0) 编辑

2019年8月30日

流程图库:G6 知识点

摘要: Viser 一个基于 G2 实现的,为数据可视化工程师量身定制的工具。 Viser-Graph 一个基于 G6 实现的,为呈现关系型数据的定制化工具。 Mode 是 G6 提供的图上事件的管理机制。 用户仅需定义好几种不同的状态,每个状态下的行为即可。当图功能状态发生变化,可以很方便的切换模式来切换 阅读全文

posted @ 2019-08-30 18:06 cag2050 阅读(373) 评论(0) 推荐(0) 编辑

流程图库:G6 学习资料

摘要: G6 学习资料 网址 G6 1.x API 文档 http://antvis.github.io/g6/doc/index.html 官方demo列表 https://github.com/antvis/g6/tree/dev3.0.0/demos 项目 GitHub 地址 https://gith 阅读全文

posted @ 2019-08-30 17:47 cag2050 阅读(660) 评论(0) 推荐(0) 编辑

Elasticsearch 索引文档如何使用自动生成 Id?

摘要: 一个文档的 _index 、 _type 和 _id 唯一标识一个文档。 我们可以提供自定义的 _id 值,或者让 index API 自动生成。 如果你的数据没有自然的 ID, Elasticsearch 可以帮我们自动生成 ID 。 请求的结构调整为: 不再使用 PUT 谓词(“使用这个 URL 阅读全文

posted @ 2019-08-30 14:24 cag2050 阅读(5185) 评论(0) 推荐(0) 编辑

2019年8月29日

Spring Boot 缓存 知识点

摘要: 每次调用需要缓存功能的方法时,Spring会检查指定参数的指定的目标方法是否已经被调用过;如果有就直接从缓存中获取方法调用后的结果,如果没有就调用方法并缓存结果后返回给用户。下次调用直接从缓存中获取。 出处:https://www.cnblogs.com/yueshutong/p/9381540.h 阅读全文

posted @ 2019-08-29 20:37 cag2050 阅读(144) 评论(0) 推荐(0) 编辑

2019年8月27日

table的各种用法

摘要: 使用 colgroup 和 col 实现响应式表格(table的各种用法):http://coderlt.coding.me/2017/11/20/table colgroup/ 阅读全文

posted @ 2019-08-27 20:31 cag2050 阅读(313) 评论(0) 推荐(0) 编辑

2019年8月26日

Spring Boot 整合 Elasticsearch

摘要: 相关资料 | 网址 | Spring Data Elasticsearch 官方文档 | https://docs.spring.io/spring data/elasticsearch/docs/current/reference/html/ Elasticsearch实战篇——Spring Bo 阅读全文

posted @ 2019-08-26 14:39 cag2050 阅读(146) 评论(0) 推荐(0) 编辑

2019年8月22日

Spring Boot 集成 Kafka

摘要: 相关文章 | 网址 | Spring Boot系列文章(一):SpringBoot Kafka 整合使用 | http://www.54tianzhisheng.cn/2018/01/05/SpringBoot Kafka/ 阅读全文

posted @ 2019-08-22 17:27 cag2050 阅读(341) 评论(0) 推荐(0) 编辑

Spring Boot 2实现分布式锁——这才是实现分布式锁的正确姿势!

摘要: 出处:http://www.itmuch.com/spring boot/global lock/ 阅读全文

posted @ 2019-08-22 17:16 cag2050 阅读(195) 评论(0) 推荐(0) 编辑

Spring Cloud 与 Spring Boot 版本兼容关系

摘要: 网址:https://start.spring.io/actuator/info 阅读全文

posted @ 2019-08-22 15:43 cag2050 阅读(486) 评论(0) 推荐(0) 编辑

2019年8月21日

Spring Boot 之:Spring Boot Admin

摘要: client 连接都 admin 时报错: 可以不用管,不影响使用。 相关文章 | 网址 | Spring Boot(二十):使用 spring boot admin 对 Spring Boot 服务进行监控 | http://www.ityouknow.com/springboot/2018/02 阅读全文

posted @ 2019-08-21 17:44 cag2050 阅读(935) 评论(0) 推荐(0) 编辑

JVM 性能调优工具

摘要: jdk自带的工具,在macOs系统中的目录位置(jdk具体版本位置要替换):/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/bin; terminal 中运行 jconsole: terminal 中运行 jvisua 阅读全文

posted @ 2019-08-21 16:15 cag2050 阅读(125) 评论(0) 推荐(0) 编辑

2019年8月20日

Spring Boot 之:Actuator 监控

摘要: 在 Spring Boot 2.x 中为了安全,Actuator 只开放了两个端点 /actuator/health 和 /actuator/info。可以在配置文件中设置打开。 Actuator 默认所有的监控点路径都在/actuator/ ,当然如果有需要这个路径也支持定制。 Actuator 阅读全文

posted @ 2019-08-20 18:01 cag2050 阅读(187) 评论(0) 推荐(0) 编辑

Spring Boot 中集成 Redis 作为数据缓存

摘要: 只添加注解:@Cacheable,不配置key时,redis 中默认存的 key 是: (1.redis cli 中,通过命令: 查看;2. :缓存对象存储在Map集合中的key值,非必需,缺省按照函数的所有参数组合作为key值,若自己配置需使用SpEL表达式,比如:@Cacheable(key = 阅读全文

posted @ 2019-08-20 17:48 cag2050 阅读(283) 评论(0) 推荐(0) 编辑

2019年8月19日

Spring Boot 中 Redis 的使用

摘要: Spring Boot 中 Redis 的使用 | 网址 | Spring Boot(三):Spring Boot 中 Redis 的使用 | http://www.ityouknow.com/springboot/2016/03/06/spring boot redis.html Spring B 阅读全文

posted @ 2019-08-19 17:17 cag2050 阅读(142) 评论(0) 推荐(0) 编辑

Mac 下 IntelliJ IDEA 编辑器 debug 卡的解决办法

摘要: https://www.jianshu.com/p/6da309e4f7e3 阅读全文

posted @ 2019-08-19 16:38 cag2050 阅读(326) 评论(0) 推荐(0) 编辑

Spring Boot 日志管理

摘要: Spring Boot 日志管理 | 网址 | Spring Boot 日志管理 | http://blog.didispace.com/springbootlog/ Spring Boot快速入门(四)——日志系统 | https://leibnizhu.gitlab.io/2016/11/26/ 阅读全文

posted @ 2019-08-19 15:42 cag2050 阅读(193) 评论(0) 推荐(0) 编辑

spring Boot + MyBatis + Maven 项目,日志开启打印 sql

摘要: 在 spring Boot + MyBatis + Maven 项目中,日志开启打印 sql 的最简单方法,就是在文件 application.properties 中新增: 注意:其中logging.level.你的Mapper包=日志等级 阅读全文

posted @ 2019-08-19 11:10 cag2050 阅读(749) 评论(0) 推荐(0) 编辑

2019年8月17日

JSR303/JSR-349,hibernate validation,spring validation 之间的关系

摘要: 1. JSR303是一项标准,JSR 349是其的升级版本,添加了一些新特性,他们规定一些校验规范即校验注解,如@Null,@NotNull,@Pattern,他们位于javax.validation.constraints包下,只提供规范不提供实现。 2. hibernate validation 阅读全文

posted @ 2019-08-17 16:48 cag2050 阅读(540) 评论(0) 推荐(0) 编辑

Spring Boot 之:接口参数校验

摘要: Spring Boot 之:接口参数校验,学习资料 | 网址 | SpringBoot(八) JSR 303 数据验证(写的比较好) | https://qq343509740.gitee.io/2018/07/24/Spring%E5%85%A8%E5%AE%B6%E6%A1%B6/SpringB 阅读全文

posted @ 2019-08-17 16:43 cag2050 阅读(600) 评论(0) 推荐(0) 编辑

2019年8月16日

Swagger 学习资料

摘要: Swagger 学习资料 | 网址 | Spring Boot中使用Swagger2构建强大的RESTful API文档 | http://blog.didispace.com/springbootswagger2/ ,https://github.com/dyc87112/SpringBoot L 阅读全文

posted @ 2019-08-16 10:31 cag2050 阅读(166) 评论(0) 推荐(0) 编辑

2019年8月15日

Spring Boot 中的事务管理

摘要: 希望能在发生异常的时候被回退,这时候就可以使用事务让它实现回退,做法非常简单,我们只需要在test函数上添加@Transactional注解即可。 使用@Transactional注解来声明一个函数需要被事务管理。 在单元测试中使用 @Transactional注解,默认情况下在测试方法的末尾会回滚 阅读全文

posted @ 2019-08-15 17:23 cag2050 阅读(195) 评论(0) 推荐(0) 编辑

2019年8月14日

Spring MVC 学习资料

摘要: Spring MVC 学习资料 | 网址 | Spring 教程(极客学院)| http://wiki.jikexueyuan.com/project/spring/ ,英文原网址:https://www.tutorialspoint.com/spring/index.htm Spring Fram 阅读全文

posted @ 2019-08-14 18:15 cag2050 阅读(347) 评论(0) 推荐(0) 编辑

Spring @Autowired 注解 学习资料

摘要: Spring @Autowired 注解 学习资料 | 网址 | Spring @Autowired 注解 | "https://wiki.jikexueyuan.com/project/spring/annotation based configuration/spring autowired a 阅读全文

posted @ 2019-08-14 17:46 cag2050 阅读(124) 评论(0) 推荐(0) 编辑

2019年8月13日

spring mvc @RequestMapping method 不写的话,默认GET、POST都支持,根据前端方式自动适应

摘要: method 不写的话,默认GET、POST都支持,根据前端方式自动适应。 阅读全文

posted @ 2019-08-13 11:24 cag2050 阅读(5327) 评论(0) 推荐(0) 编辑

JUnit 4.x 与 5.x 的区别?

摘要: 区别项 | 4.x | 5.x | | 手动把测试和测试方法声明为public | 需要 | 不需要 @Test | | 与JUnit 4的@Test注解不同的是,它没有声明任何属性,因为JUnit Jupiter中的测试扩展是基于它们自己的专用注解来完成的。这样的方法会被继承,除非它们被覆盖。 一 阅读全文

posted @ 2019-08-13 11:09 cag2050 阅读(1206) 评论(0) 推荐(0) 编辑

2019年8月10日

Mybatis 全局配置文件中 typeAliases (别名)

摘要: 出处:https://blog.csdn.net/fxq8866/article/details/52635153 阅读全文

posted @ 2019-08-10 21:21 cag2050 阅读(234) 评论(0) 推荐(0) 编辑

2019年8月8日

Mockito 学习资料

摘要: Mockito 学习资料 | 网址 | 单元测试指南:Mockito | https://blinkfox.github.io/2018/11/15/hou duan/java/dan yuan ce shi zhi nan/ toc heading 18 Mockito中文文档 | https:/ 阅读全文

posted @ 2019-08-08 15:10 cag2050 阅读(205) 评论(0) 推荐(0) 编辑

Java 8 学习资料

摘要: Java 8 学习资料 | 网址 | Java 8 简明教程 | http://blog.didispace.com/books/java8 tutorial/ 阅读全文

posted @ 2019-08-08 11:37 cag2050 阅读(183) 评论(0) 推荐(0) 编辑

Lombok 学习资料

摘要: Lombok 学习资料 | 网址 | Lombok 官方网站 | https://projectlombok.org/features/all Lombok:让JAVA代码更优雅 | http://blog.didispace.com/java lombok 1/ Java开发神器Lombok的使用 阅读全文

posted @ 2019-08-08 11:26 cag2050 阅读(122) 评论(0) 推荐(0) 编辑

hashCode、HashMap 的原理

摘要: hashCode 的契约是:如果两个对象相等,那么调用两个对象的 hashCode() 方法一定会返回相同的 hash 值。 HashMap 中 存储桶 的原理: 1. 当你在 hashMap 中存储值的时候,这些值实际存储在一组桶中。每个桶都分配了一个用于识别它的号码。当你在 HashMap 中 阅读全文

posted @ 2019-08-08 10:36 cag2050 阅读(183) 评论(0) 推荐(0) 编辑

2019年8月5日

JUnit 5.x 知识点

摘要: 出处: "https://blinkfox.github.io/2018/11/15/hou duan/java/dan yuan ce shi zhi nan/ toc heading 14" 表面上来看,使用方式和 Junit4 差别不大,但是与 JUnit4 比较起来还是有些不同的。 1. 导 阅读全文

posted @ 2019-08-05 16:04 cag2050 阅读(332) 评论(0) 推荐(0) 编辑

2019年8月1日

spring security 学习资料

摘要: spring security 学习资料 | 网址 | Spring Security 文档参考手册中文版 | https://springcloud.cc/spring security.html 阅读全文

posted @ 2019-08-01 20:59 cag2050 阅读(344) 评论(0) 推荐(0) 编辑

设计模式,学习资料

摘要: 设计模式,学习资料 | 网址 | 菜鸟教程 | https://www.runoob.com/design pattern/design pattern tutorial.html 阅读全文

posted @ 2019-08-01 15:30 cag2050 阅读(121) 评论(0) 推荐(0) 编辑

知名博主

摘要: 知名博主 | 真实姓名 | 博客 | github | | | 纯洁的微笑 | 张强 | http://www.ityouknow.com/ | https://github.com/ityouknow 程序猿DD | 翟永超 | http://blog.didispace.com/ | https 阅读全文

posted @ 2019-08-01 14:25 cag2050 阅读(213) 评论(0) 推荐(0) 编辑

shiro 学习资料

摘要: shiro 学习资料 | 网址 | (官方文档)spring boot 整合 shiro | https://shiro.apache.org/spring boot.html (纯洁的微笑)Spring Boot (十四): Spring Boot 整合 Shiro 登录认证和权限管理 | htt 阅读全文

posted @ 2019-08-01 10:58 cag2050 阅读(210) 评论(0) 推荐(0) 编辑

2019年7月31日

nuxt 中使用 koa-session

摘要: 官方 github 网址:https://github.com/koajs/session 自己做的demo:https://github.com/cag2050/nuxt_session_demo session 是一个对象,可以添加属性值。 阅读全文

posted @ 2019-07-31 17:28 cag2050 阅读(580) 评论(0) 推荐(0) 编辑

koa-session 知识点

摘要: github 网址:https://github.com/koajs/session session 是一个对象 阅读全文

posted @ 2019-07-31 16:28 cag2050 阅读(161) 评论(0) 推荐(0) 编辑

上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 33 下一页

导航