上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 46 下一页
摘要: 1: javac -d 编译之后的class文件输出目录 指定源文件位置即可。例如 对于多个包下面的源码编译,貌似javac不支持迭代编译,可能需要一次传入多个源码位置进行编译。一种便捷方法就是使用windows的bat脚本或linux的shell脚本先生成一个编译源文件清单,然后根据源文件清单进行 阅读全文
posted @ 2018-04-05 09:45 bf378 阅读(6310) 评论(0) 推荐(1) 编辑
摘要: 转:https://blog.csdn.net/qq_34039315/article/details/78561493 javap方式 最基础的方式,此处不做介绍 windows下的工具jclasslib 下载地址: 链接: https://pan.baidu.com/s/1o8FWAAu 密码: 阅读全文
posted @ 2018-03-28 10:33 bf378 阅读(4746) 评论(0) 推荐(1) 编辑
摘要: spring boot帮助我们隐藏了大量的细节,有些配置spring boot都是开启的,因此当我们查看遗留项目使用spring时候遇见问题一定细心排查 阅读全文
posted @ 2018-03-27 20:07 bf378 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 本文以数据库操作Dao为例进行描述ThreadLocal的使用,如下是一个反例: 上面存在线程安全问题,在多个线程进行事务提交时候会出现错乱。因此可以通过如下方案: 阅读全文
posted @ 2018-03-27 10:57 bf378 阅读(1037) 评论(0) 推荐(0) 编辑
摘要: 在事务中实行的方法:org.springframework.transaction.interceptor.TransactionAspectSupport#invokeWithinTransaction 真正通过connecttion调用回滚的代码:org.springframework.jdbc 阅读全文
posted @ 2018-03-26 20:25 bf378 阅读(187) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) throws Exception { // TODO 设置excel的标题 List excelHeader = new ArrayList(); excelHeader.add("访客数"); excelHeader.add("浏览量"... 阅读全文
posted @ 2018-03-21 15:43 bf378 阅读(131) 评论(0) 推荐(0) 编辑
摘要: zhc@hongchangfirst$ git checkout -b hongchangfirst origin/hongchangfirst 出现: fatal: Cannot update paths and switch to branch 'hongchangfirst' at the s 阅读全文
posted @ 2018-03-14 17:46 bf378 阅读(5218) 评论(0) 推荐(0) 编辑
摘要: 删除远程分支:git push origin -d BranchName 本地分子推送到远程:git push origin -u platform_api_file_0306 放弃本地的修改:git checkout . 记住有一个. (本地修改是指还没有git add .的修改) 阅读全文
posted @ 2018-03-06 15:51 bf378 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 1: 2: 3: 阅读全文
posted @ 2018-03-02 15:35 bf378 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 1 Repository(仓库) 1.1 Maven仓库主要有2种: remote repository:相当于公共的仓库,大家都能访问到,一般可以用URL的形式访问 local repository:存放在本地磁盘的一个文件夹,例如,windows上默认是C:\Users\{用户名}\.m2\re 阅读全文
posted @ 2018-03-01 21:52 bf378 阅读(8699) 评论(1) 推荐(2) 编辑
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 46 下一页