博客园 - lyming
uuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=49495
2018-03-15T07:29:23Z
lyming
https://www.cnblogs.com/lyming/
feed.cnblogs.com
https://www.cnblogs.com/lyming/p/8573869.html
mycat操作MySQL第一篇:全局表 - lyming
1、安装mycat,点击bin下面startup_nowrap.bat启动 2、客户端连接mycat:server.xml里面的 <!--连接mycat用户名和密码、数据库--> <user name="test"> <property name="password">test</property>
2018-03-15T07:27:00Z
2018-03-15T07:27:00Z
lyming
https://www.cnblogs.com/lyming/
【摘要】1、安装mycat,点击bin下面startup_nowrap.bat启动 2、客户端连接mycat:server.xml里面的 <!--连接mycat用户名和密码、数据库--> <user name="test"> <property name="password">test</property> <a href="https://www.cnblogs.com/lyming/p/8573869.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lyming/p/8034409.html
mysql查询优化 - lyming
1.’对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 2.应尽量避免在 where 子句中使用!=或<>操作符,否则将引擎放弃使用索引而进行全表扫描。 3.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索
2017-12-13T10:44:00Z
2017-12-13T10:44:00Z
lyming
https://www.cnblogs.com/lyming/
【摘要】1.’对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 2.应尽量避免在 where 子句中使用!=或<>操作符,否则将引擎放弃使用索引而进行全表扫描。 3.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索 <a href="https://www.cnblogs.com/lyming/p/8034409.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lyming/p/6694123.html
java多线程的常见例子 - lyming
收藏 http://blog.csdn.net/wenzhi20102321/article/details/52524545
2017-04-11T08:31:00Z
2017-04-11T08:31:00Z
lyming
https://www.cnblogs.com/lyming/
【摘要】收藏 http://blog.csdn.net/wenzhi20102321/article/details/52524545 <a href="https://www.cnblogs.com/lyming/p/6694123.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lyming/p/6229592.html
MySQL单表百万数据记录分页性能优化,转载 - lyming
背景: 自己的一个网站,由于单表的数据记录高达了一百万条,造成数据访问很慢,Google分析的后台经常报告超时,尤其是页码大的页面更是慢的不行。 测试环境: 先让我们熟悉下基本的sql语句,来查看下我们将要测试表的基本信息 use infomation_schemaSELECT * FROM TAB
2016-12-28T07:19:00Z
2016-12-28T07:19:00Z
lyming
https://www.cnblogs.com/lyming/
【摘要】背景: 自己的一个网站,由于单表的数据记录高达了一百万条,造成数据访问很慢,Google分析的后台经常报告超时,尤其是页码大的页面更是慢的不行。 测试环境: 先让我们熟悉下基本的sql语句,来查看下我们将要测试表的基本信息 use infomation_schemaSELECT * FROM TAB <a href="https://www.cnblogs.com/lyming/p/6229592.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lyming/p/6047445.html
log4j日志输出性能优化-缓存、异步 - lyming
转载 1、log4j已成为大型系统必不可少的一部分,log4j可以很方便的帮助我们在程序的任何位置输出所要打印的信息,便于我们对系统在调试阶段和正式运行阶段对问题分析和定位。由于日志级别的不同,对系统的性能影响也是有很大的差距,日志级别越高,性能越高。 2、log4j主要分为error,warn,i
2016-11-09T08:22:00Z
2016-11-09T08:22:00Z
lyming
https://www.cnblogs.com/lyming/
【摘要】转载 1、log4j已成为大型系统必不可少的一部分,log4j可以很方便的帮助我们在程序的任何位置输出所要打印的信息,便于我们对系统在调试阶段和正式运行阶段对问题分析和定位。由于日志级别的不同,对系统的性能影响也是有很大的差距,日志级别越高,性能越高。 2、log4j主要分为error,warn,i <a href="https://www.cnblogs.com/lyming/p/6047445.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lyming/p/5016087.html
Spring任务调度定时器 - lyming
1、在spring-context.xml配置 2、在service里面@Scheduled(cron = "*/5 * * * * ?") public void finds(){ System.out.println("spring的定时器开始了...每隔5秒执行一次"); }
2015-12-03T06:13:00Z
2015-12-03T06:13:00Z
lyming
https://www.cnblogs.com/lyming/
【摘要】1、在spring-context.xml配置 2、在service里面@Scheduled(cron = "*/5 * * * * ?") public void finds(){ System.out.println("spring的定时器开始了...每隔5秒执行一次"); } <a href="https://www.cnblogs.com/lyming/p/5016087.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lyming/p/5016053.html
redis的启动 - lyming
1、window启动服务:cmd 切换到D:\redis ,执行redis-server.exeredis.conf 启动服务启动客户端:cmd 切换到D:\redis ,执行redis-cli.exe -p 6379启动客户端set username tomget username2、Linuxc...
2015-12-03T06:05:00Z
2015-12-03T06:05:00Z
lyming
https://www.cnblogs.com/lyming/
【摘要】1、window启动服务:cmd 切换到D:\redis ,执行redis-server.exeredis.conf 启动服务启动客户端:cmd 切换到D:\redis ,执行redis-cli.exe -p 6379启动客户端set username tomget username2、Linuxc... <a href="https://www.cnblogs.com/lyming/p/5016053.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lyming/p/5015971.html
java解析json - lyming
1、引入json-org.jar包2、1)json解析String jsonString="{\"users\":[{\"loginname\":\"张三\",\"password\":\"123\",\"email\":\"16666666@qq.com\"},{\"loginname\":\"李...
2015-12-03T05:43:00Z
2015-12-03T05:43:00Z
lyming
https://www.cnblogs.com/lyming/
【摘要】1、引入json-org.jar包2、1)json解析String jsonString="{\"users\":[{\"loginname\":\"张三\",\"password\":\"123\",\"email\":\"16666666@qq.com\"},{\"loginname\":\"李... <a href="https://www.cnblogs.com/lyming/p/5015971.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lyming/p/5012487.html
Gson解析json字符串、json数组转换成对象 - lyming
实体类:public class Product { private int id; private String name; private String date; public int getId() { return id; } public void setId(int id) { t...
2015-12-02T03:39:00Z
2015-12-02T03:39:00Z
lyming
https://www.cnblogs.com/lyming/
【摘要】实体类:public class Product { private int id; private String name; private String date; public int getId() { return id; } public void setId(int id) { t... <a href="https://www.cnblogs.com/lyming/p/5012487.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lyming/p/4468887.html
javascript获取系统时间 - lyming
function GetDateStr(AddDayCount) { var dd = new Date(); dd.setDate(dd.getDate()+AddDayCount); var year = dd.getFullYear(); var mon...
2015-04-30T06:45:00Z
2015-04-30T06:45:00Z
lyming
https://www.cnblogs.com/lyming/
【摘要】function GetDateStr(AddDayCount) { var dd = new Date(); dd.setDate(dd.getDate()+AddDayCount); var year = dd.getFullYear(); var mon... <a href="https://www.cnblogs.com/lyming/p/4468887.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lyming/p/4468877.html
javascript从数组中删除一个元素 - lyming
Array.prototype.remove = function(val) { var index = this.indexOf(val); if (index > -1) { this.splice(index, 1); } };pubArray.remove(pub...
2015-04-30T06:43:00Z
2015-04-30T06:43:00Z
lyming
https://www.cnblogs.com/lyming/
【摘要】Array.prototype.remove = function(val) { var index = this.indexOf(val); if (index > -1) { this.splice(index, 1); } };pubArray.remove(pub... <a href="https://www.cnblogs.com/lyming/p/4468877.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lyming/p/4140194.html
百度地图动态插入标注 - lyming
1.点击地图上面的红旗图片后,在地图上面点击动态添加标注2.$('.mypig').live("click",function(even) {window.clickPointer = "tuodong";drawingManager.close();var str = $(this).attr("...
2014-12-03T07:19:00Z
2014-12-03T07:19:00Z
lyming
https://www.cnblogs.com/lyming/
【摘要】1.点击地图上面的红旗图片后,在地图上面点击动态添加标注2.$('.mypig').live("click",function(even) {window.clickPointer = "tuodong";drawingManager.close();var str = $(this).attr("... <a href="https://www.cnblogs.com/lyming/p/4140194.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lyming/p/4140174.html
父页面与子页面方法之间的调用 - lyming
父页面调用iframe子页面的方法:window.mapframe.closeMapInfo(); iframe的id iframe页面的closeMapInfo()方法iframe页面调用父页面的方法:window.parent.selectZu(); 父页面的selectZu()方法ifra...
2014-12-03T07:13:00Z
2014-12-03T07:13:00Z
lyming
https://www.cnblogs.com/lyming/
【摘要】父页面调用iframe子页面的方法:window.mapframe.closeMapInfo(); iframe的id iframe页面的closeMapInfo()方法iframe页面调用父页面的方法:window.parent.selectZu(); 父页面的selectZu()方法ifra... <a href="https://www.cnblogs.com/lyming/p/4140174.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lyming/p/4128149.html
百度地图解决标注遮挡问题 - lyming
1.由于两个终端或手机在一起,打开GPS的时候,获取的经纬度很近,会相互有遮挡,无法点击遮挡的标注,这个时候要使用Marker的setTop(isTop:Boolean)方法,将标注置于其他标注之上。默认情况下,纬度较低的标注会覆盖在纬度较高的标注之上,从而形成一种立体效果。通过此方法可使某个标注覆...
2014-11-28T03:42:00Z
2014-11-28T03:42:00Z
lyming
https://www.cnblogs.com/lyming/
【摘要】1.由于两个终端或手机在一起,打开GPS的时候,获取的经纬度很近,会相互有遮挡,无法点击遮挡的标注,这个时候要使用Marker的setTop(isTop:Boolean)方法,将标注置于其他标注之上。默认情况下,纬度较低的标注会覆盖在纬度较高的标注之上,从而形成一种立体效果。通过此方法可使某个标注覆... <a href="https://www.cnblogs.com/lyming/p/4128149.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lyming/p/4128090.html
项目中的百度地图添加标注,动态弹框 - lyming
1.最近项目开发中,用到了地图,需求是使用百度地图初始化地图:var list = ""; var map = ""; var drawingManager = ""; if (typeof (BMap) == 'undefined') { //地图加载失败 document.getElemen...
2014-11-28T03:26:00Z
2014-11-28T03:26:00Z
lyming
https://www.cnblogs.com/lyming/
【摘要】1.最近项目开发中,用到了地图,需求是使用百度地图初始化地图:var list = ""; var map = ""; var drawingManager = ""; if (typeof (BMap) == 'undefined') { //地图加载失败 document.getElemen... <a href="https://www.cnblogs.com/lyming/p/4128090.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lyming/p/4096514.html
读取MySQL存储二进制的语音、图片(Blob类型) - lyming
/** * 下载语音 * Remarks: * @throws Exception */public void downloadYuyin() throws Exception { String voiceId = getRequest().getParameter("voiceId"); ...
2014-11-14T01:43:00Z
2014-11-14T01:43:00Z
lyming
https://www.cnblogs.com/lyming/
【摘要】/** * 下载语音 * Remarks: * @throws Exception */public void downloadYuyin() throws Exception { String voiceId = getRequest().getParameter("voiceId"); ... <a href="https://www.cnblogs.com/lyming/p/4096514.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lyming/p/4088746.html
mysql方言不支持blob类型解决方案 - lyming
package com.gstone.history.entity;import java.sql.Types;import org.hibernate.Hibernate; import org.hibernate.dialect.MySQLDialect;public class BlobMyS...
2014-11-11T01:52:00Z
2014-11-11T01:52:00Z
lyming
https://www.cnblogs.com/lyming/
【摘要】package com.gstone.history.entity;import java.sql.Types;import org.hibernate.Hibernate; import org.hibernate.dialect.MySQLDialect;public class BlobMyS... <a href="https://www.cnblogs.com/lyming/p/4088746.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lyming/p/4073509.html
js 获取前天、昨天、今天、明天、后天的时间 - lyming
js 获取前天、昨天、今天、明天、后天的时间 (转)js 获取前天、昨天、今天、明天、后天的时间2011-05-19 21:03 js获取日期:前天、昨天、今天、明天、后天 - Liehuo.Net 其中有一种方法是:Date.parse(dateVal),此函数功能强大,但是有个致命的缺点...
2014-11-04T05:43:00Z
2014-11-04T05:43:00Z
lyming
https://www.cnblogs.com/lyming/
【摘要】js 获取前天、昨天、今天、明天、后天的时间 (转)js 获取前天、昨天、今天、明天、后天的时间2011-05-19 21:03 js获取日期:前天、昨天、今天、明天、后天 - Liehuo.Net 其中有一种方法是:Date.parse(dateVal),此函数功能强大,但是有个致命的缺点... <a href="https://www.cnblogs.com/lyming/p/4073509.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lyming/p/3925024.html
body里面的onload和window.onload的区别 - lyming
区别:body里面的onload是在“页面加载完成后执行的动作” window里面的onload是在“页面加载时执行的动作”例子:在html页面中有一个大图片,想要在图片显示出来后提示一个消息框“图片加载完成”,如果你直接写在JS里function(){alert(“图片加载完成”);}因...
2014-08-20T08:57:00Z
2014-08-20T08:57:00Z
lyming
https://www.cnblogs.com/lyming/
【摘要】区别:body里面的onload是在“页面加载完成后执行的动作” window里面的onload是在“页面加载时执行的动作”例子:在html页面中有一个大图片,想要在图片显示出来后提示一个消息框“图片加载完成”,如果你直接写在JS里function(){alert(“图片加载完成”);}因... <a href="https://www.cnblogs.com/lyming/p/3925024.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lyming/p/3924958.html
点击按钮弹出页面获取值 - lyming
请选择部门名称: 行政部 人事部 财政部 研发部 产品部
2014-08-20T08:36:00Z
2014-08-20T08:36:00Z
lyming
https://www.cnblogs.com/lyming/
【摘要】请选择部门名称: 行政部 人事部 财政部 研发部 产品部 <a href="https://www.cnblogs.com/lyming/p/3924958.html" target="_blank">阅读全文</a>