摘要: 2017-7-1 更新 spring 版本 4.3.9 更新mybatis 为3.4.3 0、先写下文件结构防止配置放错地方 1、首先发下maven配置 <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEnc 阅读全文
posted @ 2015-12-30 13:19 沐松 阅读(5293) 评论(0) 推荐(0) 编辑
摘要: 1、需要nginx 1.9.5+版本 2、需要ssl 证书 个人免费ssl 证书:https://buy.wosign.com/free/ 3、配置如下: 阅读全文
posted @ 2015-11-26 20:08 沐松 阅读(345) 评论(0) 推荐(0) 编辑
摘要: yum info softname 查看安装包信息 yum install softname 安装包名 安装 nginx http://jingyan.baidu.com/article/aa6a2c14dc36640d4d19c47e.html uname -r 查看系统内核 cat /etc/c 阅读全文
posted @ 2015-11-25 21:13 沐松 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 上篇文章是1年前写的惭愧惭愧,今天一个同事问我要demo然后看了下文章 好吧主要的代码 没写出来,今天补充下上篇地址:http://www.cnblogs.com/rufus-hua/p/4159278.html上篇写到 在 thrift文件夹里 新建 hello.thrift文件如下面代码:nam... 阅读全文
posted @ 2015-11-16 19:51 沐松 阅读(1854) 评论(4) 推荐(0) 编辑
摘要: 去年(2014年)公司决定服务框架改用Finagle(后续文章详细介绍),but 公司业务系统大部分是C#写的,然后 finagle只提供了 scala/java 的Client 于是 只能自己动手丰衣足食了,项目中使用了 zookpeerClient+ThriftClient 然后自己封装了 cl 阅读全文
posted @ 2015-11-06 11:33 沐松 阅读(490) 评论(0) 推荐(0) 编辑
摘要: 以前知道loadbalance的原理,但是仅仅是浅浅的了解过,今天看了一篇 10多年前 一位大神级别人物 写的文章 顿时学习了http://www.linuxvirtualserver.org/zh/lvs3.html 原来loadbanlance 有nat 和 ip隧道模式 和直接路由模式 ... 阅读全文
posted @ 2015-11-06 10:48 沐松 阅读(601) 评论(0) 推荐(0) 编辑
摘要: 最近做一些复杂html常常需要在页面做一些数据处理,常常在想如果 js有list 这种数据结构多少,今天逛github时 发现有Immutable.js 这个项目https://github.com/facebook/immutable-js/ 文档地址:http://facebook.github 阅读全文
posted @ 2015-10-30 16:16 沐松 阅读(506) 评论(0) 推荐(0) 编辑
摘要: flask在开发的时候,经常启动本身进行调试(本身可以设置监听的端口,例如 在app.run(port=8088),当然默认不设置端口为5000)。 但生产环境经常使用uswgi充当flask的宿主,然后使用nginx 转跳uswgi,因为本身uswgi处理静态文件功能并不强大,通常nginx... 阅读全文
posted @ 2015-10-14 14:52 沐松 阅读(1252) 评论(0) 推荐(0) 编辑
摘要: 今天踩了一个坑 如xxx.com/xxx/xxx?code=+adfdf 我需要拿到 code=+adfdf 但是后台拿到的是 adfdf, 后来只能对 code的值进行 urlencode处理了 2017.10修改 url参数 code 使用了base64后的值 这种值会有+和/ 这2中编码 当存 阅读全文
posted @ 2015-10-13 21:46 沐松 阅读(233) 评论(0) 推荐(0) 编辑
摘要: Spring lets you define multiple contexts in a parent-child hierarchy.The applicationContext.xml defines the beans for the "root webapp context", i.e. ... 阅读全文
posted @ 2015-08-29 16:09 沐松 阅读(239) 评论(0) 推荐(0) 编辑