摘要: @Service("taskExecutorFactory") public class TaskExecutorFactory implements ApplicationContextAware,InitializingBean { private ApplicationContext context; private static Map taskExecutorMap... 阅读全文
posted @ 2018-09-03 10:49 十七年的夏天 阅读(1041) 评论(0) 推荐(0) 编辑
摘要: @PostContruct是spring框架的注解,在方法上加该注解会在项目启动的时候执行该方法,也可以理解为在spring容器初始化的时候执行该方法。 阅读全文
posted @ 2018-06-29 13:53 十七年的夏天 阅读(2089) 评论(1) 推荐(1) 编辑
摘要: @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = { "classpath:trade.application.xml" }) public class BaseTest { } 阅读全文
posted @ 2018-06-24 17:25 十七年的夏天 阅读(845) 评论(0) 推荐(0) 编辑
摘要: 1 String nwVal=recordDO.getWorkOrderNwVal(); 2 HashMap nwMap=JSON.parseObject(nwVal,new TypeReference>() {}); 阅读全文
posted @ 2018-06-13 09:58 十七年的夏天 阅读(11084) 评论(0) 推荐(0) 编辑
摘要: 接口说明:当一个类实现了这个接口之后,这个类就可以方便地获得 ApplicationContext 中的所有bean。换句话说,就是这个类可以直接获取Spring配置文件中,所有有引用到的bean对象。 在Web应用中,Spring容器通常采用声明式方式配置产生:开发者只要在web.xml中配置一个 阅读全文
posted @ 2018-05-03 23:11 十七年的夏天 阅读(253) 评论(0) 推荐(0) 编辑
摘要: Retention注解 Retention(保留)注解说明,这种类型的注解会被保留到那个阶段. 有三个值: 1.RetentionPolicy.SOURCE —— 这种类型的Annotations只在源代码级别保留,编译时就会被忽略 2.RetentionPolicy.CLASS —— 这种类型的A 阅读全文
posted @ 2018-05-03 22:27 十七年的夏天 阅读(538) 评论(0) 推荐(0) 编辑
摘要: git的一些基础命令 Git常用命令 请确保已经安装里git客户端 一般配置 git --version //查看git的版本信息 git config --global user.name //获取当前登录的用户 git config --global user.email //获取当前登录用户的 阅读全文
posted @ 2018-04-26 09:12 十七年的夏天 阅读(181) 评论(0) 推荐(0) 编辑
摘要: gti下载地址 https://git-scm.com/downloads 一步一步来就完事了。安装完以后执行 git version 查看是否更新到了该版本 阅读全文
posted @ 2018-04-24 18:34 十七年的夏天 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 在Mac下将移动硬盘格式化成exfat,这样Mac和Windows都可以对移动硬盘进行识别 阅读全文
posted @ 2018-04-22 18:13 十七年的夏天 阅读(894) 评论(0) 推荐(0) 编辑
摘要: 显示隐藏文件defaults write com.apple.finder AppleShowAllFiles -bool true; KillAll Finder恢复隐藏文件 defaults write com.apple.finder AppleShowAllFiles -bool false 阅读全文
posted @ 2018-04-22 18:05 十七年的夏天 阅读(114) 评论(0) 推荐(0) 编辑