随笔分类 -  web

摘要:#https://blog.csdn.net/chenqipc/article/details/53322830#https://github.com/spring-cloud/spring-cloud-netflix/issues/2030#https://github.com/spring-cl 阅读全文
posted @ 2018-06-05 23:19 junneyang 阅读(190) 评论(0) 推荐(0) 编辑
摘要:我认为最合理的做法: 1、dao层不捕获异常、不抛出异常:spring框架将底层的数据库checked异常封装成unchecked异常了 2、service层捕获异常,并抛出自定义unchecked异常,异常中不定义状态码:checked异常默认情况事务不会回滚 3、controller层捕获异常, 阅读全文
posted @ 2018-05-25 23:07 junneyang 阅读(626) 评论(0) 推荐(0) 编辑
摘要:OpenAPI规范 阅读全文
posted @ 2018-01-11 13:10 junneyang 阅读(1280) 评论(0) 推荐(0) 编辑
摘要:我的Springboot框架,欢迎关注: https://github.com/junneyang/common-web-starter Dubbo-大波-服务化框架 我的Springboot框架,欢迎关注: https://github.com/junneyang/common-web-start 阅读全文
posted @ 2017-04-19 16:42 junneyang 阅读(5401) 评论(0) 推荐(2) 编辑
摘要:示例代码: https://github.com/junneyang/springcloud-demo 参考资料: SpringCloud系列 SpringCloud SpringCloud 1 Eclipse/Maven 1 Eclipse/Maven 1.1 https://github.com 阅读全文
posted @ 2017-02-09 12:09 junneyang 阅读(6778) 评论(0) 推荐(0) 编辑
摘要:服务端代码示例: 客户端代码示例: 参考资料: golang http请求优化: https://www.douban.com/note/285372115/ goreq: 极简单的流式golang http client: http://www.tuicool.com/articles/FNZbY 阅读全文
posted @ 2016-12-22 14:41 junneyang 阅读(51133) 评论(0) 推荐(0) 编辑
摘要:参考资料: 通过beego快速创建一个Restful风格API项目及API文档自动化: http://www.cnblogs.com/huligong1234/p/4707282.html Go 语言构建 RESTful Web 服务: https://www.oschina.net/transla 阅读全文
posted @ 2016-12-19 10:17 junneyang 阅读(3848) 评论(0) 推荐(0) 编辑
摘要:参考资料: http://www.tuicool.com/articles/mqeee2A http://www.cnblogs.com/suncj/p/4065589.html http://spring.io/guides/gs/spring-boot/ mvn spring-boot:run 阅读全文
posted @ 2016-12-15 15:15 junneyang 阅读(402) 评论(0) 推荐(0) 编辑
摘要:URL通配符示例: 代码示例: 阅读全文
posted @ 2016-10-21 14:53 junneyang 阅读(1063) 评论(0) 推荐(0) 编辑
摘要:代码示例: 参考资料: http://www.gowhich.com/blog/309 http://www.cnblogs.com/BeginMan/archive/2013/05/27/3101322.html http://blog.sina.com.cn/s/blog_3fe961ae010 阅读全文
posted @ 2016-10-18 16:47 junneyang 阅读(1876) 评论(0) 推荐(0) 编辑
摘要:代码: 参考资料: http://www.jianshu.com/p/2ce715671340 http://blog.csdn.net/martin_liang/article/details/43286539 http://zhidao.baidu.com/link?url=l2plQ2oAU0 阅读全文
posted @ 2016-10-18 11:57 junneyang 阅读(374) 评论(0) 推荐(0) 编辑
摘要:SQL语句: 简化SQL如下(把子查询转化为WHERE语句): Django代码: SQL实现聚合查询统计(Sum,Count等) 参考资料: DINSTINCT: http://www.w3school.com.cn/sql/sql_distinct.asp RAW语句实现:http://yeel 阅读全文
posted @ 2016-10-18 09:30 junneyang 阅读(16175) 评论(0) 推荐(0) 编辑
摘要:代码: Django默认的事务行为 默认情况下,在Django中事务是自动提交的。当我们运行Django内置的模板修改函数时,例如调用model.save()或model.delete()时,事务将被立即提交。这种机制和数据库的自动提交事务机制类似。记住这里没有默认的回滚机制。 在HTTP请求上加事 阅读全文
posted @ 2016-10-13 10:54 junneyang 阅读(2767) 评论(0) 推荐(1) 编辑
摘要:参考资料: https://docs.python.org/2/library/uuid.html http://www.cnblogs.com/dkblog/archive/2011/10/10/2205200.html http://www.zhihu.com/question/19742113 阅读全文
posted @ 2016-10-10 18:30 junneyang 阅读(5715) 评论(0) 推荐(0) 编辑
摘要:参考资料: http://zh-sphinx-doc.readthedocs.io/en/latest/tutorial.html http://avnpc.com/pages/writing-best-documentation-by-sphinx-github-readthedocs http: 阅读全文
posted @ 2016-09-27 09:32 junneyang 阅读(1336) 评论(0) 推荐(0) 编辑
摘要:之前写了一篇《WAF防御能力评测及工具》,是站在安全运维人员选型WAF产品的角度来考虑的(优先从测试角度考虑是前职业病,毕竟当过3年游戏测试?!)。本篇文章从WAF产品研发的角度来YY如何实现一款可靠的WAF,灵感来自ModSecurity等,感谢开源。 本片文章包括三个主题 一、WAF实现 WAF 阅读全文
posted @ 2016-09-20 12:51 junneyang 阅读(3417) 评论(0) 推荐(0) 编辑
摘要:HTTPS单向认证和双向认证 nearzk-osc 发布时间: 2015/07/30 15:27 阅读: 4177 收藏: 178 点赞: 6 评论: 3 HTTPS单向认证和双向认证 nearzk-osc nearzk-osc 发布时间: 2015/07/30 15:27 阅读: 4177 收藏: 阅读全文
posted @ 2016-07-05 09:06 junneyang 阅读(3213) 评论(0) 推荐(0) 编辑
摘要:在Linux(ubuntu server)上面安装NodeJS的正确姿势 上一篇文章,我介绍了 在Windows中安装NodeJS的正确姿势,这一篇,我们继续来看一下在Linux上面安装和配置NodeJS。 为了保持一致,这里也列举三个方法 第一个方法:通过官网下载安装 https://nodejs 阅读全文
posted @ 2016-07-04 11:44 junneyang 阅读(1601) 评论(0) 推荐(0) 编辑
摘要:AngularJS is an awesome javascript framework. With it’s $resource service it is super fast and easy to connect your javascript client to a RESTful API 阅读全文
posted @ 2016-07-01 16:26 junneyang 阅读(9321) 评论(0) 推荐(0) 编辑
摘要:Nginx is awesome, but it’s missing some common features. For instance, a common thing to add to access logs is a unique ID per request, so that you ca 阅读全文
posted @ 2016-05-20 15:51 junneyang 阅读(8593) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示