2018年10月15日

git操作命令

摘要: 一、使用git branch来创建分支 使用场景:暂时没有体会 git branch - a 显示所有分支 git branch xx 创建xx分支 git checkout xx 切换到xx分支 git checkout - b xx 创建并切换到xx分支 二、使用git stash保存和恢复工作 阅读全文

posted @ 2018-10-15 17:19 ${} 阅读(115) 评论(0) 推荐(0) 编辑

SpringTest注解选择配置文件

摘要: @RunWith(SpringJUnit4ClassRunner.class)@ContextConfiguration(locations = {"classpath:config/applicationContext.xml"})@ActiveProfiles("dev")public clas 阅读全文

posted @ 2018-10-15 16:57 ${} 阅读(383) 评论(0) 推荐(0) 编辑

文件上传

摘要: 文件上传保存的文件路径为和部署Tomcat同级的目录 String tomcatPath = System.getProperty("catalina.home");//获取tomcat目录File curAllInOneProjectFile = new File(tomcatPath);File 阅读全文

posted @ 2018-10-15 15:18 ${} 阅读(86) 评论(0) 推荐(0) 编辑

导航