01 2018 档案

《JAVA8实战》读书笔记之传递方法和传递lambda
摘要:传递方法: 假设 你有一个Apple类,它 有一个getColor方法,还有一个变量inventory保存着一个Apples的列表。你可能想要选出所 有的绿苹果,并返回一个列表。通常我们用筛选(filter)一词来表达这个概念。在Java 8之前, 你可能会写这样一个方法filterGreenApp 阅读全文

posted @ 2018-01-19 23:15 近博 阅读(5524) 评论(1) 推荐(0)

GIT命令
摘要:远程仓库: 关联远程仓库:git remote add origin <仓库地址> 如:git remote add origin git@github.com:michaelliao/learngit.git 推送本地分支到远程:git push -u origin <远程分支> 如:git pu 阅读全文

posted @ 2018-01-11 10:39 近博 阅读(167) 评论(0) 推荐(0)

springboot 返回json格式数据的时间格式配置
摘要:#时间戳统一转换 spring.jackson.date-format=yyyy-MM-dd HH:mm:ss spring.jackson.time-zone=GMT+8 NOTE:time-zone是时区偏移设置,如果不指定的话时间和北京时间会差八个小时 阅读全文

posted @ 2018-01-10 11:36 近博 阅读(797) 评论(0) 推荐(0)

swagger常用注解说明
摘要:swagger常用注解说明 阅读全文

posted @ 2018-01-09 18:20 近博 阅读(239) 评论(0) 推荐(0)

git 远程分支回滚
摘要:转载 git代码库回滚: 指的是将代码库某分支退回到以前的某个commit id 【本地代码库回滚】: git reset --hard commit-id :回滚到commit-id,讲commit-id之后提交的commit都去除 git reset --hard HEAD~6:将最近6次的提交 阅读全文

posted @ 2018-01-08 23:28 近博 阅读(6336) 评论(0) 推荐(0)

Swagger 2.0 摘要
摘要:官网地址:http://springfox.github.io/springfox/docs/current/ 阅读全文

posted @ 2018-01-08 16:53 近博 阅读(232) 评论(0) 推荐(0)

spring-boot-devtools在Idea中热部署方法
摘要:1.导入依赖: Gradle Maven 2.配置Idea 1) “File” -> “Settings” -> “Build,Execution,Deplyment” -> “Compiler”,选中打勾 “Build project automatically” 。 2) 组合键:“Shift+ 阅读全文

posted @ 2018-01-08 00:53 近博 阅读(172) 评论(0) 推荐(0)

导航