上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页
摘要: 使用场景: 自己模块发生变化后可能引起其他模块变化的部分,需要添加事件通告,通知其他模块。 使用模式: 观察者模式 (以User类为例)写法: 1.创建接口: 2.创建notify处理类 3.进阶-可以扔到jms消息队列中。 阅读全文
posted @ 2016-03-18 16:08 無限大 阅读(927) 评论(0) 推荐(0) 编辑
摘要: public static void clearDir(File file) { if (file.isDirectory()) { for (File f : file.listFiles()) { clearDir(f); f.delete(); ... 阅读全文
posted @ 2016-03-16 22:44 無限大 阅读(380) 评论(0) 推荐(0) 编辑
摘要: package com.gcy.test.util; import java.io.BufferedWriter; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.util.Random; import org.apache.commons.i... 阅读全文
posted @ 2016-03-16 18:42 無限大 阅读(927) 评论(0) 推荐(0) 编辑
摘要: mac permission问题 现象:jetty等需要写日志权限的容器无法写入日志,原因为没有创建文件的权限。 解决方法:将目标目录修改权限 做法:右键->显示简介->共享与权限->修改为everyone即可 阅读全文
posted @ 2016-03-12 00:15 無限大 阅读(139) 评论(0) 推荐(0) 编辑
摘要: <bean id="defaultMongoTypeMapper" class="org.springframework.data.mongodb.core.convert.DefaultMongoTypeMapper"> <constructor-arg name="typeKey"> <null 阅读全文
posted @ 2016-03-09 18:01 無限大 阅读(5487) 评论(0) 推荐(0) 编辑
摘要: windows/mac rename f5/cmd+opt+r 阅读全文
posted @ 2016-03-09 08:10 無限大 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1.在无密码模式下添加账号 2.角色权限说明 http://www.2cto.com/database/201507/420854.html 阅读全文
posted @ 2016-03-08 10:17 無限大 阅读(150) 评论(0) 推荐(0) 编辑
摘要: windows版本 http://dl.mongodb.org/dl/win32/x86_64 安装教程 https://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/ mac os 版本 https://docs.mongo 阅读全文
posted @ 2016-03-01 10:41 無限大 阅读(146) 评论(0) 推荐(0) 编辑
摘要: ActiveMQ 安装配置 更多 ActiveMQ 安装配置 更多 ActiveMQ 安装配置 安装 前置条件:1)安装JDK;2)配置 JAVA_HOME 环境变量,确保 echo $JAVA_HOME 输出JDK的安装路径 下载:wget http://www.apache.org/dyn/cl 阅读全文
posted @ 2016-02-29 16:39 無限大 阅读(383) 评论(0) 推荐(0) 编辑
摘要: 构建jms http://blog.csdn.net/haoxingfeng/article/details/9167895 阅读全文
posted @ 2016-02-25 17:23 無限大 阅读(127) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页