使用mybatis向数据库中插入一条记录,如何获取成功插入记录的自增长id呢?需要向xml配置中加上一下两个配置: insert into scheduleInfo(title,content,time,state,userId) values(#{title},#{content},#{ti...
分类:
其他好文 时间:
2014-07-11 10:25:45
阅读次数:
152
Alt+回车 导入包,自动修正Ctrl+N 查找类Ctrl+Shift+N 查找文件Ctrl+Alt+L格式化代码Ctrl+Alt+O 优化导入的类和包Alt+Insert 生成代码(如get,set方法,构造函数等)Ctrl+E或者Alt+Shift+C最近更改的代码Ctrl+R 替换文本Ctrl...
分类:
移动开发 时间:
2014-07-11 10:05:34
阅读次数:
271
Search Insert PositionGiven a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if ...
分类:
其他好文 时间:
2014-07-11 09:09:33
阅读次数:
211
Combination Sum IIGiven a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sum...
分类:
其他好文 时间:
2014-07-11 08:41:13
阅读次数:
156
本文档介绍Icehouse版keystone-all命令 keystone-all命令在一个进程中同时启动服务和管理API,为openstack提供服务目录,授权和身份认证服务。用法$ keystone-all [-h] [--config-dir DIR] [--config-file ...
分类:
其他好文 时间:
2014-07-10 16:34:26
阅读次数:
411
Linux下开启MySQL的远程连接基于安全考虑root账户一般只能本地访问,但是在开发过程中可能需要打开root的远程访问权限。下面是基本的步骤:1、登录到mysql中,为root进行远程访问的授权,执行下面的命令:mysql> GRANT ALL PRIVILEGES ON *.* TO roo...
分类:
数据库 时间:
2014-07-10 16:21:22
阅读次数:
285
启用mod_rewrite模块 在conf目录的httpd.conf文件中找到 LoadModule rewrite_module modules/mod_rewrite.so 将这一行前面的#去掉。 2.在要支持url rewirte的目录启用 Options FollowSymLinks和All...
分类:
其他好文 时间:
2014-07-10 16:15:28
阅读次数:
190
登陆mysqlmysql -u username -p创建用户名配置权限,这里为该用户配置tablename表的全部权限,也可以指定GRANT ALL PRIVILEGES ON tablename.* TO 'username'@'hostname' IDENTIFIED BY 'password...
分类:
数据库 时间:
2014-07-10 16:08:59
阅读次数:
209
We all know how to search through an array for an element whose value equals the target value, but how to search for the element that has value greate...
分类:
其他好文 时间:
2014-07-10 16:08:21
阅读次数:
168
video from youtube:http://www.youtube.com/watch?v=79NWqv3aPRIone blog post:Monitor All SQL Queries in MySQLhttp://www.howtogeek.com/howto/database/mon...
分类:
数据库 时间:
2014-07-10 15:41:58
阅读次数:
218