摘要:
微服务九大特性 出自Martin Fowler的《Microservices》 1. 服务组件化 2. 按业务组织团队 3. 做“产品”的态度 4. 智能端点与哑管道 5. 去中心化治理 6. 去中心化管理数据 7. 基础设施自动化 8. 容错设计 9. 演进式设计 Spring Boot特性 1. 阅读全文
随笔分类 - 开发随笔
jquery-mockjax初试
2015-10-09 16:31 by chen.simon, 498 阅读, 收藏,
摘要:
1. 原理 jquery-mockjax是用于mock 前台ajax向后台请求的返回数据。 原理很简单 在你js代码要发送ajax请求的地方断点一下,然后比较在【引入jquery-mockjax】 和 【没有引入jquery-mockjax】的情况下$.ajax.toString()的值情况。 很明显,引入jquery-mockjax时,这个mock库会对jquery提供的ajax函数做替换。这样... 阅读全文
electron "Cannot find module 'dialog'", source: module.js (336)"
2015-10-07 03:42 by chen.simon, 1342 阅读, 收藏,
摘要:
打算用electron的dialog api谁知道, 按官方apihttp://electron.atom.io/docs/v0.33.0/api/dialog/https://github.com/atom/electron/blob/master/docs/api/remote.md竟然报Can... 阅读全文
electron Uncaught ReferenceError: jQuery is not defined
2015-10-05 10:07 by chen.simon, 2310 阅读, 收藏,
摘要:
用electron写桌面程序时ui部分的html页面引入的js会用到jquery用常规的方式引入是不行的,会抛出如题的异常需要在页面中加入其中路径根据你的实际情况进行替换参见https://discuss.atom.io/t/uncaught-error-cannot-find-module-jqu... 阅读全文
contenteditable
2015-10-05 00:27 by chen.simon, 209 阅读, 收藏,
摘要:
http://www.w3school.com.cn/tags/att_global_contenteditable.asp做编辑器经常用这个属性 使得整个编辑区域所见所得http://www.cnblogs.com/cskk/archive/2013/03/30/divs.html这两天在研究编辑... 阅读全文
jQuery的delegate()与proxy()方法
2015-10-03 01:07 by chen.simon, 366 阅读, 收藏,
摘要:
1.jQuery 事件 - delegate() 方法定义和用法delegate() 方法为指定的元素(属于被选元素的子元素)添加一个或多个事件处理程序,并规定当这些事件发生时运行的函数。使用 delegate() 方法的事件处理程序适用于当前或未来的元素(比如由脚本创建的新元素)。$("div")... 阅读全文
javascript中argument1 === void 0的意思
2015-10-02 23:46 by chen.simon, 673 阅读, 收藏,
摘要:
今天看代码时看到 if (argument1 === void 0 || typeof argument1 === 'object') {啥意思?概述void 运算符会对它的操作数表达式进行求值,然后忽略掉求值的结果,直接返回 undefined。语法void expression描述我们经常会在一... 阅读全文
spring 怎样将枚举项注入到bean的数组字段中
2015-09-28 16:17 by chen.simon, 1279 阅读, 收藏,
摘要:
在配置文件的xmlns中引入util的scheamxmlns:util=http://www.springframework.org/schema/util在配置文件的xmlns:util="http://www.springframework.org/schema/util"中插入http://w... 阅读全文
tomcat 6.0.44 “has failed to stop it. This is very likely to create a memory leak” 问题调查
2015-09-26 11:18 by chen.simon, 18921 阅读, 收藏,
摘要:
1. 问题起因 我们项目中缓存模块某个实现采用了ehcache(2.4.3),当项目部署到tomcat中后,对tomcat做停止服务操作(点击eclipse的console红色的停止按钮,奇怪的是有小概率的情况不能复现这个问题??),发现tomcat不能正常停止,报错 appears to have started a thread named [xxx] but has failed t... 阅读全文
log4j2.x 配置文件默认寻找顺序
2015-09-25 11:50 by chen.simon, 1760 阅读, 收藏,
摘要:
Automatic Configuration Log4j has the ability to automatically configure itself during initialization. When Log4j starts it will locate all the ConfigurationFactory plugins and arrange then in weighte... 阅读全文
浙公网安备 33010602011771号