- 博客(14)
- 资源 (1)
- 收藏
- 关注
原创 mysql登录问题
使用shell> mysql -uroot -p 登录mysql数据库时报错Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' ;同时发现 mysql.pid 、 mysql.sock文件找不到分析:出现这个报错的原因可能有很多,网上大多数解决方案是复制粘贴,一系列操作后未必有用。这里列...
2018-04-04 13:21:39
199
原创 Mybatis,oracle,ORA-00933: SQL 命令未正确结束
批量插入时,如果没有主键,一定要显式指定useGeneratedKeys为false,否则会报: SQL 命令未正确结束
2016-05-16 19:44:18
22233
9
原创 MySQL存储过程简单记录
1. 基本格式 drop procedure if exists p_test;create procedure p_test(in id int, out name VARCHAR(100))BEGIN select id; select uname into name from t_user where uid = id;end; drop ... create... 类
2016-05-09 21:25:09
1283
原创 异常处理汇总
1. IOException parsing XML document from file ...\mybatisConfig.xml]; nested exception is java.net.ConnectException: Connection timed out: connect启动服时出现以上异常,从描述上看mybatisConfig.xml中某个链接无法访问,导到连接超时
2015-12-21 20:05:27
990
原创 springMVC整合dubbo问题及解决方法
1. 注解方式,提供者正常,但消费者获取不到对象,提示空指针;测试过程中发现service必须声明为static才可以正常使用。原因分析:与注解顺序有关解决方法:指定springMVC与dubbo注解扫描的顺序
2015-12-03 17:39:59
7762
原创 APP接入微信支付接口
(请无视微信支付提供的DEMO ,那是个坑啊!具体接口开发,参考网站上的文档!)1.准备工作,微信支付相关申请 详细的申请流程参考https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1419317780&token=&lang=zh_CN
2015-08-10 11:22:38
2177
转载 用postgreSQL做基于地理位置的app
原文地址:http://blog.youkuaiyun.com/wusuopubupt/article/details/21621477前言:项目中用到了postgreSQL中的earthdistance()函数功能计算地球上两点之间的距离,中文的资料太少了,我找到了一篇英文的、讲的很好的文章,特此翻译,希望能够帮助到以后用到earthdistance的同学。一、两种可用的选择
2015-07-31 19:55:27
601
原创 app接入支付宝接口
支付宝接口版本:支付宝钱包支付接口开发包2.0标准版(20150616)准备工作: a)申请签约,具体过程不细述 b)签约成功后,注意拿到账户的以下几重要的参数 PID:即支付宝接口中的partner,以2088开头的16位纯数字组成 商户私钥:privateKey 通过支付宝提供的开发包中的openssl生成,用于支付宝接口参数组装时,生成
2015-07-22 20:21:46
1618
转载 [pgsql]pgsql数据库时间函数
1.获取系统时间函数select now(); --2012-05-12 18:51:59.562+08select current_timestamp; --2012-05-12 18:52:12.062+08select current_date; --2012-05-12select current_time;
2015-06-09 14:56:05
1379
原创 [缓存]Linux系统memcached的安装
1.安装 memcached首先需要libevent (安装过程中路径都是默认的/usr/local/lib) 参考地址:http://www.linuxfromscratch.org/blfs/view/svn/basicnet/libevent.html a)下载libevent-2.0.22 #wget http://downloads.sourceforge.
2015-06-08 18:03:00
497
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人