有了Closeable为什么还要定义AutoCloseable
IDEA 远程调试spring boot项目
Maven命令备忘
版本更新
- 更新父模块到指定版本号
1 | mvn versions:set -DnewVersion=1.0.1-SNAPSHOT |
- 更新子模块版本到与模块相同
1 | mvn -N versions:update-child-modules |
发布到仓库
- 发布版本到指定本地仓库
1 | mvn deploy -DskipTests -DaltDeploymentRepository=wf2311-mvn-repo::default::file:D:/Projects/open-source/maven-repo/repository/ |
- 把jar包加入本地仓库
1 | mvn install:install-file -Dfile=D:\thrift-0.9.2.jar -DgroupId=org.apache.thrift -DartifactId=libthrift -Dversion=0.9.2 -Dpackaging=jar |
Git常用命令备忘
克隆远程制定分支到本地
1 | git clone -b <branch> <remote_repo> ## branch为分支名,remote_repo为远程仓库 |
强制覆盖本地文件
1 | git fetch --all |
提交文件
1 | git add a.file b.fle |
标签相关
切换到指定分支
1 | git checkout <branch> |
检出指定分支
1 | git checkout tags/<tag_name> -b <branch_name> |
新建标签
1 | git tag <tagName> |
查看所有标签
1 | git tag |