摘要: 使用 @Validated ,@Valid ,@NotBlank 之类的,请自行百度,本文着重与捕捉校验失败信息并封装返回出去 参考: https://mp.weixin.qq.com/s/EaZxYKyC4L_EofWdtyBCpw https://www.jianshu.com/p/bcc5a3 阅读全文
posted @ 2019-02-15 16:29 bookc 阅读(14575) 评论(3) 推荐(2) 编辑
摘要: 最简单的待校验的注解定义 阅读全文
posted @ 2019-02-13 14:36 bookc 阅读(770) 评论(0) 推荐(0) 编辑
摘要: 注:以我遇到的情况,只要发出的请求参数是map格式的,都会在前后多加一个双引号 以下代码有两个功能:1.FastJson 替换 Spring 自带的 Jackson 2.解决返回的字符串带双引号问题 阅读全文
posted @ 2019-01-24 16:24 bookc 阅读(7472) 评论(1) 推荐(0) 编辑
摘要: @Component public class SpringUtil implements ApplicationContextAware { private static ApplicationContext applicationContext; @Override public void setApplicationContext(ApplicationCon... 阅读全文
posted @ 2019-01-07 10:46 bookc 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 支持linux下读取 阅读全文
posted @ 2018-12-14 17:55 bookc 阅读(2759) 评论(0) 推荐(0) 编辑
摘要: 参考文档 官方文档 http://spring.io/projects/spring-data-neo4j#learn https://docs.spring.io/spring-data/neo4j/docs/5.1.2.RELEASE/reference/html/ https://neo4j. 阅读全文
posted @ 2018-11-13 14:42 bookc 阅读(4317) 评论(0) 推荐(0) 编辑
摘要: 1.参考 https://blog.csdn.net/appleyk/article/category/7408344 系列文章 (不支持 spring boo 2.0 以下的,入门可做参考) 2.底层驱动 https://github.com/neo4j/neo4j-ogm 3.数据库访问 htt 阅读全文
posted @ 2018-11-06 11:08 bookc 阅读(1586) 评论(0) 推荐(0) 编辑
摘要: java,mongodb,BasicQuery 阅读全文
posted @ 2018-11-01 10:44 bookc 阅读(8960) 评论(2) 推荐(2) 编辑
摘要: @PathVariable出现点号"."时导致路径参数截断获取不全的解决办法 比如,我路径是/test/{name},name的值是1.2.3.4,后台用@PathVariable来接收,那后台接收到的是1.2.3,最后的“4”被截取掉了 出现这种问题主要是 @EnableWebMvc 的使用问题, 阅读全文
posted @ 2018-10-30 10:05 bookc 阅读(567) 评论(0) 推荐(0) 编辑
摘要: 项目介绍 Spring Boot 2.0 + VueJs 2.0 开发项目示例 GitHub: https://github.com/fqybzhangji/spring-boot-vue 码云: https://gitee.com/fqybzhangji/spring-boot-vue 阅读全文
posted @ 2018-10-18 14:06 bookc 阅读(795) 评论(0) 推荐(0) 编辑