摘要: 转自:http://blog.csdn.net/suifeng3051/article/details/52607544 什么是秒杀 秒杀场景一般会在电商网站举行一些活动或者节假日在12306网站上抢票时遇到。对于电商网站中一些稀缺或者特价商品,电商网站一般会在约定时间点对其进行限量销售,因为这些商 阅读全文
posted @ 2017-03-17 16:36 Binz 阅读(913) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.csdn.net/tjcyjd/article/details/50695922 Nginx的配置文件nginx.conf配置详解如下: user nginx nginx ; Nginx用户及组:用户 组。window下不指定 worker_processes 8; 工 阅读全文
posted @ 2017-03-17 16:28 Binz 阅读(235) 评论(0) 推荐(0) 编辑
摘要: name like concat(concat('%',#{name}),'%') name like concat('%',#{name},'%') 阅读全文
posted @ 2017-03-17 11:08 Binz 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 先定义一个拦截器注解 @Target({ElementType.METHOD, ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) public @interface LoginRequired { } 在定义一个拦截器,下面的逻辑也可以根据 阅读全文
posted @ 2017-03-17 10:48 Binz 阅读(6107) 评论(0) 推荐(0) 编辑
摘要: xml mvc版本查看:https://www.cnblogs.com/binz/p/6564490.html springboot3.x以前的版本查看 https://www.cnblogs.com/binz/p/17421063.html springboot3.x查看 https://www. 阅读全文
posted @ 2017-03-17 10:33 Binz 阅读(16361) 评论(4) 推荐(0) 编辑
摘要: 开发一个基于注解的登录拦截器,遇到拦截器只能拦截controller不能拦截到具体的方法名,这样拦截器就完全没用,经过仔细摸索,DefaultAnnotationHandlerMapping和AnnotationMethodHandlerAdapter并不支持拦截方法,发现只有3.1版本后才支持,而 阅读全文
posted @ 2017-03-17 10:22 Binz 阅读(999) 评论(0) 推荐(0) 编辑
摘要: -server -Xms256m -Xmx512m -XX:PermSize=128M -XX:MaxPermSize=256m -XX:+UseG1GC 阅读全文
posted @ 2017-03-17 10:12 Binz 阅读(201) 评论(0) 推荐(0) 编辑