上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: import org.slf4j.Logger; import org.slf4j.LoggerFactory; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisPool; import redis.clients.jedis.JedisPoolConfig; import java.io.IOExceptio... 阅读全文
posted @ 2018-01-24 17:46 抱明月 阅读(6702) 评论(0) 推荐(1) 编辑
摘要: 转载自:http://www.jianshu.com/p/d1d29e97f6b8 (在该文章中看到一段感兴趣的文字,转载过来) 在Web开发中,有两种主流的页面渲染方案: 服务器端渲染,通过页面渲染引擎渲染好HTML页面发送给浏览器 客户端渲染,客户单端通过RESTAPI获取数据在浏览器上动态渲染 阅读全文
posted @ 2017-11-27 14:29 抱明月 阅读(734) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://blog.csdn.net/builderwfy/article/details/50785749 到网上查资料发现这是由eclipse和tomcat交互时,在debug模式启动tomcat时,发生了读取文件错误 , eslipse自动设置了断点,导致tomcat启动不正常。解 阅读全文
posted @ 2017-11-24 10:42 抱明月 阅读(893) 评论(0) 推荐(0) 编辑
摘要: 转载自:https://www.cnblogs.com/Steping/p/5737547.html 问题起因: 在微信公众号开发(微站)过程中用jquery的live方法绑定的click事件点击无效(不能执行) 问题描述 当使用委托给一个元素添加click事件时,如果事件是委托到 document 阅读全文
posted @ 2017-11-22 10:16 抱明月 阅读(813) 评论(0) 推荐(0) 编辑
摘要: /** * 输出文字 * @param response * @param s */ public static void responseOut(HttpServletResponse response,String s){ response.setContentType("text/html;charset=UTF-8"... 阅读全文
posted @ 2017-09-01 15:10 抱明月 阅读(1606) 评论(0) 推荐(0) 编辑
摘要: #{xxx},使用的是PreparedStatement,会有类型转换,所以比较安全; ${xxx},使用字符串拼接,可以SQL注入; like查询不小心会有漏洞,正确写法如下: Mysql: select * from t_user where name like concat('%', #{na 阅读全文
posted @ 2017-08-02 14:01 抱明月 阅读(1615) 评论(0) 推荐(0) 编辑
摘要: -server -Xms2g -Xmx2g -XX:NewRatio=3 -Xss16m -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:ConcGCThreads=4 -XX:ReservedCodeCacheSize=240m -XX:+AlwaysPreTouch -XX:+TieredCompilation -XX:+U... 阅读全文
posted @ 2017-08-02 10:09 抱明月 阅读(603) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-07-27 19:44 抱明月 阅读(1729) 评论(0) 推荐(0) 编辑
摘要: 发出get请求,方式一 发出get请求,方式二 用spring restTemplate 发出post类型的表单请求 数据以键值对的方式进行传输,如:K=V&K=V 接收LIST<Object>类型的数据 阅读全文
posted @ 2017-07-14 15:08 抱明月 阅读(664) 评论(0) 推荐(0) 编辑
摘要: var currSwiperIndex=0; function widthHandle(){ var level = widthLevel(); if(level==1){ //单个显示,滑动 if(mySwiper==null){ mySwiper = new Swi... 阅读全文
posted @ 2017-07-14 11:08 抱明月 阅读(578) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页